-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upstream CSS files with embedded sourceMappingURL are loaded from wrong location #8411
Comments
I also stumbled upon this today. My attempts at somehow solving this with manual import or linking inside the |
As a temporary workaround to silence this warning you can set
This will inline the source map into the source map comment |
same error here. i am using gridjs 5.1.0 inside a laravel 9.31 installation (on sail) with vite 3.0.9 when i set when i do not use i am importing the css-file via
|
Describe the bug
I'm including this file in my project: https://github.com/twbs/bootstrap/blob/v5.1.3/dist/css/bootstrap.min.css (as
import 'bootstrap/dist/css/bootstrap.min.css';
)This file includes an embedded comment
/*# sourceMappingURL=bootstrap.min.css.map */
When running with Vite dev server and opening it in Chrome, I always get a warning in dev console:
e.g. https://vitejs-vite-sfhie6--3000.local.webcontainer.io/ with dev tools open.
Since Vite injects some magic into the CSS, I think Chrome no longer knows the relative path where to load the source map? I guess Vite should rewrite the URL in
sourceMappingURL=
as well.No such warning with Firefox.
Reproduction
https://stackblitz.com/edit/vitejs-vite-sfhie6?file=main.js
System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: