-
-
Notifications
You must be signed in to change notification settings - Fork 15
Module not found when using SASS with Webpack #90
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
Comments
I can confirm this problem. It's quite annoying to run |
Hey @mikaelkalt, @joelfisch , Thank you for sending us a demo project.
The project builds successfully after the mentioned changes. The build with |
@Fatme Thank you for your explanation! Your suggestion works for me whether I build with or without |
@joelfisch @Fatme Thank you very much, it really works.. (although I was pretty sure that I've tested it :-( ) Anyways, it is very confusing that in the official nativescript documentation it is explicitly mentioned to reference the css files and not the scss files: I guess the reason for that is that the documentation is not about using webpack, but it would be very useful to mention this specialty when using webpack in combination with this plugin. |
Thank you. We'll update our documentation! |
This is the PR updating the docs https://github.com/NativeScript/docs/pull/1405 |
Problem Description
When using SASS in combination with webpack, the build fails because webpack won't find the compiled CSS files. The error will be something like the following:
When building the app with webpack using e.g.
tns build ios --bundle
the SASS compilation is skipped (for whatever reason) - so I guess that's the reason behind the problem.Which platform(s) does your issue occur on?
Since it's a problem during the build, I guess this is secondary but:
Version numbers that the issue occurs with:
Recreate the issue
Technically it's quite simple. When you create a new NativeScript project and setup webpack and SASS - the app won't (most likely) build.
I have prepared a sample project to easily reproduce the problem, you can find that here:
https://github.com/mikaelkalt/nativescript-angular-sass-webpack-sample
The following issue might be related to that one:
NativeScript/nativescript-dev-webpack#473
The text was updated successfully, but these errors were encountered: