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
upgrading from .4 to .5 seems to have caused an issue with findNestedDependencies? I'm getting an error out of this bit of Almond for the one nested dependency I have:
function callDep(name) {
if (waiting.hasOwnProperty(name)) {
var args = waiting[name];
delete waiting[name];
defining[name] = true;
main.apply(undef, args);
}
if (!defined.hasOwnProperty(name)) {
throw new Error('No ' + name); // <==== here
}
return defined[name];
}
Open up http://localhost:3000 and you should see the webapp with no console errors. CNTL-C on the mimosa process.
Now...
$ cd /usr/local/lib/node_modules/mimosa/node_modules/requirejs/bin/ (or wherever your global node installs are)
$ rm r.js
$ wget https://raw.github.com/jrburke/r.js/master/dist/r.js
Back in the AngularJS project...
$ mimosa watch -s -o
Reload localhost:3000. Should see a Error: No vendor/domReady on the console.
The require vendor/domReady is in assets/javascripts/bootstrap.coffee, which is compiled to js to public/javascripts/bootstrap.js, which is where it is picked up by the optimizer.
If the mimosa stuff doesn't work for ya, let me know.
The text was updated successfully, but these errors were encountered:
Thanks for the test case. It was quite silly, I thought my test suite had a findNestedDependencies test so that it would confirm if I broke anything in the 2.0.5 esprima parse switchover, but I just plain did not have a test for it. So of course there was a bug. So I fixed it, you can try this master version to confirm:
Broken out of #247
upgrading from .4 to .5 seems to have caused an issue with findNestedDependencies? I'm getting an error out of this bit of Almond for the one nested dependency I have:
This is the easiest way to see this in action:
Open up http://localhost:3000 and you should see the webapp with no console errors. CNTL-C on the mimosa process.
Now...
Back in the AngularJS project...
Reload localhost:3000. Should see a
Error: No vendor/domReady
on the console.The require vendor/domReady is in assets/javascripts/bootstrap.coffee, which is compiled to js to public/javascripts/bootstrap.js, which is where it is picked up by the optimizer.
If the mimosa stuff doesn't work for ya, let me know.
The text was updated successfully, but these errors were encountered: