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 updated from v1 to use the new v2 and the build process is not working using: r.js -o build.js
I've tried changing from many modules to one module in the build.js and the same result:
Tracing dependencies for: '1st module in the list'
Error: Module loading did not complete for: '1st module in the list', `dependencies...`
...
at Function.traceDependencies (/usr/local/lib/node_modules/requirejs/bin/r.js:16373:19)
I've added to my main.js and build.js the shim for backbone.js
This was due to the "paths" configuration for "vendor" and "facade" both pointing to the "facade" module. Once I changed the paths config to be "vendor": "vendor", then it the build completed.
I committed a change to r.js that should give a better error message in this case. You can try it here:
Also, side note: I noticed some of the module, like utils.js could save some typing from using the "sugared" form of modules:
define(function(require){return{"ajaxOptions": require("utils/ajax-options"),"debug": require("utils/debug"),"docCookies": require("utils/cookies"),"lib": require("utils/lib"),"storage": require("utils/storage")};// the shims should only extend native JavaScript Objects when needed, e.g. Object.create});
Thanks James! yes, the sugared form does save some duplications and keystrokes. The updated error message really clears up the mistake on my end.
Error: Module loading did not complete for: utils, utils/debug, utils/lib, utils/storage, facade, vendor
The following modules share the same URL. This could be a misconfiguration if that URL only has one anonymous module in it:
/Users/billheat/code/community/pixelhandler/vertebrae/public/facade.js: facade, vendor
the project I am working on is at : github.com/pixelhandler/vertebrae the main.js w/ config: src/main.js and the build.js : build.js
I updated from v1 to use the new v2 and the build process is not working using:
r.js -o build.js
I've tried changing from many modules to one module in the build.js and the same result:
I've added to my main.js and build.js the shim for backbone.js
Also tried adding to build.js :
mainConfigFile: './src/main.js'
How do I debug this in r.js ?
Best regards,
-Bill Heaton
P.S. this is the same project you used to test during patch for 1.0.7
The text was updated successfully, but these errors were encountered: