We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
webpack/webpack#43
Based on the above issue, I think the fix, when requiring eventemitter2 is to:
var ee2Lib = require('eventemitter2'), EventEmitter = ee2Lib.EventEmitter2 || ee2Lib
Appears the library has 2 interfaces, one for AMD and one for CommonJS
I was able to test this locally and it worked. I no longer got the error:
Uncaught TypeError: EventEmitter is not a constructor
The text was updated successfully, but these errors were encountered:
This worked for me. @jasonlally has a PR been opened for this?
Sorry, something went wrong.
No branches or pull requests
webpack/webpack#43
Based on the above issue, I think the fix, when requiring eventemitter2 is to:
var ee2Lib = require('eventemitter2'), EventEmitter = ee2Lib.EventEmitter2 || ee2Lib
Appears the library has 2 interfaces, one for AMD and one for CommonJS
I was able to test this locally and it worked. I no longer got the error:
Uncaught TypeError: EventEmitter is not a constructor
The text was updated successfully, but these errors were encountered: