-
Notifications
You must be signed in to change notification settings - Fork 12k
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
@ngtools crashes when using scss with ViewEncapsulation.None #2584
Comments
Might be related to angular/angular#11408 |
I hope this will be fixed soon. |
Is someone still working on that problem? |
any workaround for this ? |
For places where ViewEncapsulation.None was used, I've removed the styles altogether and just placed a line This bug has also had me reevaluating the styles I was using in components with ViewEncapsulation.None to determine what can be promoted to just a global stylesheet and what should stay. The styles that are component specific I'm working to change to use ViewEncapsulation.Emulated. |
@DzmitryShylovich Yes it's related to that issue in the code generator. In the CLI itself I'm going to move the generated code to its own directory. A PR should come soon to do just this. That way we will avoid the issue. There will not be a change in the configuration so you guys should not notice anything different (other than the bug being fixed). |
Actually I retract my previous statement. This does not seem related to that issue, but rather might be a bug in the ngtools itself when using outside of the CLI, and using genDir that's not the basePath. I'm trying to repro locally and investigating further. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
OS?
Versions.
Using webpack repo from the test directory: https://github.com/angular/angular-cli/tree/master/tests/e2e/assets/webpack/test-app
Repro steps.
If you set ViewEncapsulation.None any component, like right here: https://github.com/qdouble/show-encapsulation-error/blob/master/app/app.component.ts#L9 and then run the
webpack
command it will crash. You can download the repo from that link if you want, the only thing that I changed is adding ViewEncapsulation.NoneThe log given by the failure.
The text was updated successfully, but these errors were encountered: