-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Uncaught TypeError: mitt is not a constructor" #9
Comments
I'm going to ditch |
Here is how you can work around the issue for now without messing with Webpack (works with create-react-app).
|
I was able to get things to work with the current set up by doing |
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 import Flipping from 'flipping/lib/adapters/web'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, I recently tried to use Flipping in a project scaffolded with create-react-app but could not import Flipping due to the following error:
TypeError: mitt is not a constructor
on line 74 of Flipping.jsAny advice? It seems like others have encountered this issue with mitt
The text was updated successfully, but these errors were encountered: