include.js icon indicating copy to clipboard operation
include.js copied to clipboard

It keeps trying to load css as js

Open SephReed opened this issue 6 years ago • 1 comments

I keep getting this warning:

/components/NavBar/navBar/css.js” was loaded even though its MIME type (“”) is not a valid JavaScript MIME type.

My code is like so:

include(['/components/NavBar/navBar.css', '/components/Footer/footer.css']);

I don't know why it's replacing the dot with a / but it shouldn't be.

SephReed avatar Jun 21 '19 22:06 SephReed

Alright, figured out it's supposed to be //components/NavBar/navBar.css, but then that fails to get served. Still looking into it.

SephReed avatar Jun 24 '19 14:06 SephReed