Open jdanyow opened 8 years ago
Firefox console show: "TypeError: plugin.load is not a function" when aurelia attempt load css-resources (that's why error "Failed loading required CSS file" raise).
After some research I found that SO post about that error.
Author found solution in comments to first post: 28 Jul, to dynamically require text requires setting stub:false in the text plugin at aurelia.json > build.loader.plugins.
After change stub
value to false
in aurelia.json
-- work fine for me. Bug is gone and app work correct.
@huochunpeng this should be pretty much obsolete with the new auto-tracer right?
Not by me, but current cli stubs text! plugin to throw a readable exception.
define({load: function(id){throw new Error("Dynamic load not allowed: " + id);}});
@xenoterracide commented on Sat Jul 30 2016
I'm submitting a feature request
Current behavior:
It's obvious to me that this is because I've misdefined paths in
aurelia.json
but it's not clear to me exactly what I've done wrong, printing out the path that it's trying to open server side would be helpful.Also more complete documentation of
aurelia.json
would be nice.