Closed Den-dp closed 1 year ago
There's a specific move generator for Angular workspaces
nx g @nrwl/angular:move
Can you try that instead? https://nx.dev/packages/angular/generators/move
@Coly010 unfortunately I see the same error
looks like internally it uses @nrwl/workspace:move
anyway
https://github.com/nrwl/nx/blob/c3c9b2d24d384ce1b39d78461eb86c7c0c84bb75/packages/angular/src/generators/move/move.ts#L1-L25
It does, but it does extra things required for angular, let me take a look
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.
Current Behavior
@nrwl/workspace:move
generator fails while trying to move around a lib in a newly created (via angular cli) project, since from the starttsconfig.json
has comments inside (I guess it affects all newcomers trying to use nx in their projects).Expected Behavior
should work with
tsconfig.json
which usesjson5
file format (comments).Github Repo
No response
Steps to Reproduce
ng new ng14-minimal --minimal --inline-style --inline-template --skip-tests --routing false --style=css
cd ng14-minimal
ng g library some-lib
cat tsconfig.json
npm i @nrwl/workspace -D
npx nx generate @nrwl/workspace:move libs --project-name=some-lib --verbose
Nx Report
Failure Logs
Additional Information
No response