Comments (4)
the problem seems fixable if you change require('mitt')
to require('mitt').default
:
from flipping.
Want to make a PR?
Related issue: developit/mitt#67
from flipping.
im still a little fuzzy about how typescript compiles these exports (i just edited the compiled javascript by hand) so bear with me but dont we want that mitt#67 issue merged first?
if i were to edit Flipping.ts it would go from
import * as mitt from 'mitt';
to
import {default as mitt} from 'mitt';
and then someday down the line i'd have to revert it after that mitt PR is merged?
from flipping.
I doubt that PR will ever be merged, so the way it works with your fix should be good.
from flipping.
Related Issues (20)
- animating between display block/none HOT 2
- Mithril FLIP HOT 4
- How do i import this into a typescript code-base? HOT 2
- "Uncaught TypeError: mitt is not a constructor" HOT 4
- 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
- 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
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.