systemjs / plugin-css

CSS loader plugin
MIT License
92 stars 60 forks source link

TypeError: Cannot read property 'rootURL' of undefined #93

Closed peterjuras closed 8 years ago

peterjuras commented 8 years ago

The newest version breaks my build because I don't have a rootURL defined and it fails because the rootURL is directly access in the base loader (see this commit)

Is rootURL a required config property? Otherwise it could be checked first whether it is defined on the loader.

Edit: Also, it looks like the loader is accessed before it is initialized (later with var loader = this;

peterjuras commented 8 years ago

I created a pull request with a fix for the issue mentioned above.