[5.x] CSS cannot be loaded from `file:` URLs unless they end in a `.css` file extension with Electron >= 3.0
See original GitHub issueUpdating to the latest version of Electron (3.0.5) seems to break electron-forge.
Styles are no longer loaded and the dev tools console displays this warning:
[Deprecation] CSS cannot be loaded from
file:URLs unless they end in a
.css file extension.
Obviusly this is because the <head>
of my app contains
<link rel="stylesheet" href="path/to/styles.scss">
How do I overcome this and still use electron-forge?
Issue Analytics
- State:
- Created 5 years ago
- Reactions:4
- Comments:6 (2 by maintainers)
Top Results From Across the Web
[5.x] CSS cannot be loaded from file: URLs unless they end in ...
Updating to the latest version of Electron (3.0.5) seems to break electron-forge. Styles are no longer loaded and the dev tools console displays ......
Read more >CSS cannot be loaded from `file:` URLs unless they end in a ...
[Deprecation] CSS cannot be loaded from `file:` URLs unless they end in a `.css` file extension. i'm using chrome. css · sass ·...
Read more >A brand new website interface for an even better experience!
[5.x] CSS cannot be loaded from `file:` URLs unless they end in a `.css` file extension with Electron >= 3.0.
Read more >@lanethegreat/electron-compile - npm package | Snyk
Electron supporting package to compile JS and CSS in Electron ... "[Deprecation] CSS cannot be loaded from `file:` URLs unless they end in...
Read more >Changelog | Meteor API Docs
Runs PostCSS plugins if the app has a PostCSS config and the postcss-load-config npm package installed. Supports TailwindCSS 3.x PR 1 PR 2....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I found a cleaner workaround. Still isn’t ideal unfortunately, but on Windows (dev w/only one terminal) it makes it cake. I don’t know the progress on this bug though.
Using the package
npm-run-all
you can make it fairly easy to compile CSS at runtime with only one window.In anticipation of The V6 Stable Release we are closing out all the
v5
issues. Once V6 stable is released it will be the only supported version of Electron Forge.