Comments (4)
I'm going to ditch mitt
and use a custom event emitter pattern.
from flipping.
Here is how you can work around the issue for now without messing with Webpack (works with create-react-app).
import * as Mitt from 'mitt/dist/mitt.umd';
import { Emitter } from 'mitt';
const emitter = new Mitt() as Emitter;
from flipping.
I was able to get things to work with the current set up by doing
import Flipping from "flipping/dist/flipping"
,
I don't know if there's a better way
from flipping.
For webpack also this config works:
{
//...
resolve: {
extensions: ['.js'],
//modules: [path.resolve(__dirname, 'src'), 'node_modules'],
alias: {
'mitt': 'mitt/dist/mitt.umd.js',
},
},
//...
}
Note: I'm just using the .js
file with
import Flipping from 'flipping/lib/adapters/web';
from flipping.
Related Issues (20)
- How to customize transitions? HOT 5
- Explanations of examples HOT 1
- Broken expand example
- FLIP with `appendChild` method HOT 1
- [Question] How would this work with nuxt and page transitions? HOT 2
- Cannot import adapters correctly HOT 2
- Animation to or from an underlying value is not yet supported. Firefox OSX HOT 4
- Vulnerabilities
- onEnter no longer triggered HOT 1
- Cannot set duration and easing when using CSS Adapter HOT 2
- animating between display block/none HOT 2
- Uncaught TypeError: Cannot read property 'parentElement' of undefined
- Can't import; problems with export declaration?
- Project Dead? HOT 3
- Expected behavior in the presence of nested flipping elements?
- Clarification about .js vs .web.js vs .css.js
- Mithril FLIP HOT 4
- How do i import this into a typescript code-base? HOT 2
- TypeError: mitt is not a constructor HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flipping.