cujojs / curl

curl.js is small, fast, extensible module loader that handles AMD, CommonJS Modules/1.1, CSS, HTML/text, and legacy scripts.
https://github.com/cujojs/curl/wiki
Other
1.89k stars 216 forks source link

Error: Multiple anonymous defines in url #148

Closed tranky82 closed 11 years ago

tranky82 commented 11 years ago

Calling curl(['nmspc/xhd/grid'], function() { ... }, function(errB) { ... });

on 0.7.2 i've this kind of error: "Error: Multiple anonymous defines in url" on errB. Why?

unscriptable commented 11 years ago

That error message can be misleading some times. Have you checked to ensure that there's either one anonymous define() in "nmspc/xhd/grid" or there's a define() with an id === "nmspc/xhd/grid"?

tranky82 commented 11 years ago

no, there isn't an anonymous define() in mnspc/xhd/grid and no define() with an id === "nmspc/xhd/grid"..... :(

2012/11/13 John Hann notifications@github.com

That error message can be misleading some times. Have you checked to ensure that there's either one anonymous define() in "nmspc/xhd/grid" or there's a define() with an id === "nmspc/xhd/grid"?

— Reply to this email directly or view it on GitHubhttps://github.com/cujojs/curl/issues/148#issuecomment-10326019.

unscriptable commented 11 years ago

Hey @tranky82, is there a define() at all in the file? Can you provide some more info? Thx! -- J

tranky82 commented 11 years ago

I solved! Sorry! :)