-
Notifications
You must be signed in to change notification settings - Fork 36
Uncaught Error: Mismatched anonymous define() module #7
Comments
I'm unfamiliar with using RequireJS in the context of Karma. However, I could see how this might be affected by Karma being unable to automatically discover its plugins. Can you please try |
Same issue with gulp-karma 0.0.2 unfortunately |
@pwistrand, can you push a repo that reproduces this? That'll make it easier for me to debug it. |
See there: https://github.com/khepin/gulp-karma-failing If I pipe in non-existing files it works. Probably because the source files don't get overwritten in karma's configuration. If I pass in existing files, it breaks. |
+1. The issue is duplicated specs or required files from both Gulp and Karma. If you pipe in files from Gulp which are also included in your Karma The only fix right now is to define your files in |
@tonyhb : That fix did the trick for me. Yes there is overlap between the errors here and how |
@tonyhb it works, thank you |
I'm trialling gulp-karma with the same karma.conf.js file that we use for our existing grunt karma task and running into issues. Following the suggestion to explicitly specify plugins to solve Error: No provider for "framework:jasmine" [https://github.com//issues/4] I'm now receiving an "Uncaught Error: Mismatched anonymous define() module: function (... " error message for every spec.
I can see from debugging in chrome that none of our Spec dependencies (jquery, underscore etc) as defined in our test-main.js file are being loaded. Other than learning the internals of require.js I'm stuck.
The text was updated successfully, but these errors were encountered: