-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Incorrect svg filepath #2736
Comments
Could you please post the |
alright here's what my source looks like... import logo from "./Images/logo_color.svg";
...
<img alt={"logo"} src={logo} className={classes.logo} /> |
Parcel parcel-bundler/parcel#2740 parcel-bundler/parcel#2736 also removed --experimental-scope-hoisting until upgrade works
Fixes broken image paths parcel-bundler/parcel#2736
+1 |
This issue seems to affect all asset types that are referenced from css, not just svg. The files are output correctly into the build folder but the paths in the css are output in a relative format instead of absolute as specified by Had to revert back to v1.11 for now. |
For added context, I also received this error when referencing an |
+1 |
+1 |
Asset error occurring - see: parcel-bundler/parcel#2736
Seeing similar behaviour in Parcel 1.12.4. Using CSS I'm importing an svg like so |
🐛 bug report
After updating to the latest version of Parcel (1.12.0) svg images no longer load properly due to the wrong paths being generated.
🎛 Configuration (.babelrc, package.json, cli command)
🤔 Expected Behavior
Generated links should look like:
😯 Current Behavior
Links generated by the newest version of Parcel:
💁 Possible Solution
🔦 Context
💻 Code Sample
🌍 Your Environment
The text was updated successfully, but these errors were encountered: