-
Notifications
You must be signed in to change notification settings - Fork 48
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
Module not found error with style url(/...) #64
Comments
It's possible its a bug. We'll have to investigate. |
html-loader 'Root-relative' URLs For urls that start with a /, the default behavior is to not translate them. If a root query parameter is set, however, it will be prepended to the url and then translated. Maybe polymer-webpack-loader should behave in a similar fashion. Thanks |
@govis, before we tackle this would it be possible that you provide a minimal reproducible repo that we can clone for debugging, solution, and adding to our tests. This will considerably expedite the solution process. Thank you so much! |
If you add
src\my-element.html in Rob Dodson's polymer-webpack-loader demo, you will get the error:
Thanks |
Same problem, wish have an option likes css-loader:
|
I get a similar error when adding ts-loader like this:
Typescript and ts-loader are installed. The error is:
|
I finally got a chance to debug this. The loader is doing the appropriate thing. Webpack does not appear to support treating the compilation folder as a root. This is unfortunate. |
Having an absolute url:
background-image: url('/images/image1.jpg');
in dom-module style throwsModule not found: Error: Can't resolve '/images/image1.jpg' in '{Project root}\{path to dom-module}'
.It appears to be treating it as a relative path. Adding
?url=false
option doesn't help - do you know how to fix it without changing the url itself? Thanks.The text was updated successfully, but these errors were encountered: