You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I recently updated grunt-requirejs via NPM and my compiled JavaScript no longer runs. The main file loads but the callback passed to define is not executed. However, everything works fine when I don't compile and just load the modules dynamically. I've created a test project so you can hopefully reproduce the error.
Here's the compiled file found in build/js after running $ grunt
First of all, thanks for your detailed bug description, if everyone would do that, debugging would be so much easier :)
I think I know the problem, but I don´t have much time to adress this today.
I will try to release version 0.3.2 tomorrow which will contain a fix (hopefully) ;)
If I manually insert require('test') at the end of build/js/test.js everything loads fine. RequireJS actually supports this feature with the insertRequire option. It doesn't seem to do anything when I use it in my Gruntfile though.
Fortunately I have some time to look into this issue today & tomorrow, after a long time where I didn't had any time at all for OS projects. Thanks for your patience & your error descriptions, will try my best to fix it.
I recently updated grunt-requirejs via NPM and my compiled JavaScript no longer runs. The main file loads but the callback passed to
define
is not executed. However, everything works fine when I don't compile and just load the modules dynamically. I've created a test project so you can hopefully reproduce the error.Here's the compiled file found in
build/js
after running$ grunt
My directory structure:
Contents of test.js:
Contents of grunt.js:
Contents of test.html:
Versions:
The text was updated successfully, but these errors were encountered: