-
-
Notifications
You must be signed in to change notification settings - Fork 428
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
3.2.2 breaks resolve-url loader #254
Comments
Yes, this was an unintentional breaking change with @bholloway and I will sort it out, but he is currently on vacation, so that may take a while. |
The 4.0.0 release didn't fixed the problem for me. With 3.2.1, the project builds, with 3.2.2 I get:
Same with 4.0.0. |
As far as I understand, breaking changes where moved from 3.2.2 (marked deprecated) to 4.0.0, so you should still be able to do "^3.2.0" in your package.json without installing incompatible 3.2.2 release. Sidenote: |
That's correct, |
@judewang thanks for pointing out. Now I've published |
Why do you not unpublish 3.2.2? It had saved me some time. |
|
I read you can contact the npm team if something like this happens (I think after 24 hours you can unpublish any package anymore). IMHO I am also not a fan of unpublish, cause I like the immutable nature of npm packages, but failing early on package installation is better than failing somewhere in your build process where it is harder to debug and everyone that uses exact versions (like me) wants this feedback, before they build their software with a broken version. |
I agree, but unpublish would have been too late for you anyway. So I think the current solution is the best in all cases. |
Sure and of course thank for the quick fix :) |
Please update More 90 days inactive. Closing this out, please feel free to reopen if this doesn't resolve your issue. Thanks! |
Issue
It seems like either commit e0ce2b4 breaks resolve-url loader, or there is something wrong with my webpack config (working flawlessly with 3.2.1).
Upon switching to sass-loader 3.2.2 from 3.2.1 (tested working) I get the following warning during bundling:
Additionally, relative url(...) paths (eg. fonts used by ionicons) produce error because they can not be resolved anymore:
The later is obviously emited because resolve-url has problems with the source-maps generated with sass-loaders current settings.
Webpack-Config
Full config
Details
In my main entry-point app.ts I do a
require('./scss/ionic.scss');
. Inside I fine-tune some scss variables and then@import '~ionic-angular/ionic.scss'
code. The same error happens btw. when directly including ionic-angular/ionic.scss viarequire('ionic-angular/ionic.scss')
instead.The transpiled css code will then be inserted into a style-tag globally by the final style-loader, where it is available to be used by ionic components and directives.
Of course I could always fix this issue by setting
$font-path: '../../node_modules/ionic-angular/fonts'
inside my ./scss/ionic.scss file, but up until 3.2.2 the resolve-url loader was able to resolve relative url(...) paths for me, which I feel was a great boon. :(The text was updated successfully, but these errors were encountered: