-
-
Notifications
You must be signed in to change notification settings - Fork 158
Image URL doesn’t resolve #19
Comments
FWIW I had to debug the same problem and I posted my findings on StackOverflow: http://stackoverflow.com/questions/34133808/webpack-ots-parsing-error-loading-fonts/34133809#34133809 Chrome has problems with paths that don't specify the protocol |
The same problem +1 |
Though I was trying to get base64 strings to render properly (and couldn't), this at least led me to the absolute URL solution. I don't love it, but it's literally the only thing I've gotten to work, so thank you @wmadden. |
Try removing sourceMap param from css loader @luqin |
@EugeneHlushko Thank you! |
@brandondurham You still experience this regression ? |
All good here! Removing |
@EugeneHlushko can you please show code, or give explanation of how to remove the e.g. if these are your loaders in
|
@bengrunfeld With the |
@michael-ciniawsky Here is a link to a repo with an example of the bug. link Clone, Again, maybe this is a usage error, but hard to tell from my perspective since I am receiving no Webpack errors. |
@bengrunfeld I will test it and take a deeper look soon 😛 things a saw at first glance are .babelrc - ['env', 'es2015', 'react']
+ ['env', 'react']
For the URL issue, since you're are using |
Any update on this? I don't have source-maps enabled. The one difference from the OP's is that my css is inside "<style>" tags instead of a separate css file |
This may very well be an issue with my setup outside of the url-loader… not sure.
Here is my url-loader config:
In my component’s CSS file I have the following declaration:
The url-loader does the proper thing and moves that image to my
publicPath
and updates the url for the image in the resulting CSS:Problem is the image never actually appears in the browser. When I right-click the image URL in the inspector and choose “Open link in new tab” it sends me to this URL:
If I actually type in the url
http://my.local.site/include/images/1eb425455da53643003af01f01e8231f.png
the image appears.Any idea what the problem might be?
The text was updated successfully, but these errors were encountered: