-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Mocha v3 triggers "mismatched anonymous define()" error #2424
Comments
The WorkaroundHere's a workaround: load Mocha in a
For whatever reason, Karma loads the frameworks in reverse order.of the order in which they are listed in What's the issue?The Mocha 2.x series had one call to In 3.x there is a second From the perspective of AMD loaders, a script which is loaded through a However, in the case of Mocha, just slapping names on the I see |
@lddubeau Thanks for digging in. Just for reference, I'm not using karma at all. Reversing the order of the includes did resolve the error though. Thanks for the work around! EDIT: Reversing the order causes problems with things that depend on both ( |
@fearphage What depends on json-cov? You might have multiple versions of Mocha being loaded, since Mocha@3 removed it. |
It appears |
Using mocha v3 with RequireJS, causes it to throw a
mismatched anonymous define()
error. I've verified with3.0.0
and3.0.1
. The latest 2.x (2.5.3
) branch works flawlessly. I didn't see anything that seemed related in the change logRequirejs v2.2.0 (latest)
Another reference: karma-runner/karma-requirejs#50 (This is not my ticket, just came up in Googling)
The text was updated successfully, but these errors were encountered: