Skip to content
This repository has been archived by the owner on Dec 20, 2022. It is now read-only.

It keeps trying to load css as js #24

Open
SephReed opened this issue Jun 21, 2019 · 1 comment
Open

It keeps trying to load css as js #24

SephReed opened this issue Jun 21, 2019 · 1 comment

Comments

@SephReed
Copy link

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 SephReed changed the title Trying to load css as js It keeps trying to load css as js Jun 21, 2019
@SephReed
Copy link
Author

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant