-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Add @nrwl/workspace does not update stylePreprocessorOptions.includePaths #1468
Comments
Thank you for reporting this. If someone from the community would like to work on this, the code is here: https://github.com/nrwl/nx/blob/master/packages/workspace/src/schematics/ng-add/ng-add.ts#L117 |
@FrozenPandaz I migrated a CLI project recently (after upgrading it to Angular 8) and I fixed many issues that I had in the process. I built the workspace package locally and fixed it step by step until I got my app updated. I've opened #1476 including this path update. @jonrimmer it would be nice if you build my PR locally ( |
@matheo Tried it, but It does not work. Problem seems to be this line: matheo@227ba7e#diff-a9ea54d30f3a734ae12a67708517088cR394 You are trying to rename the app's tsConfig—e.g. |
@jonr-elsewhen hmm, I will fix that, my old CLI project had only one tsconfig 👍 |
@matheo Any progress on this? |
@mehrad-rafigh perhaps you can help me to finish this. |
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context. |
Expected Behavior
When I use
ng add @nrwl/workspace
, my app's sources are moved into./apps
. All the paths inangular.json
should be updated to reflect this.Current Behavior
If my project is using the
build.options.stylePreprocessorOptions.includePaths
config, this does not get updated. E.g.This include path is left alone by the add schematic.
Failure Information (for bugs)
After running
ng app @nrwl/workspace
, the include path should be updated toapps/{appName}/src/assets/styles
.Steps to Reproduce
Please provide detailed steps for reproducing the issue.
ng new nx-test
angular.json
and add a style include path referening./src
or a subpath of it.ng add @nrwl/workspace
Context
Nx: 8.1.0.
Angular CLI: 8
The text was updated successfully, but these errors were encountered: