Nx 13.3.x NOTE: [NX] An Angular builder called writeWorkspace, this may have had unintended consequences in workspace.json
See original GitHub issueWhen trying to generate an Ionic app in an empty Nx workspace using xplat 13, the following occurs.
> Executing task: npx ng generate @nstudio/ionic-angular:application --name=sample --directory=sample --no-useXplat --no-interactive --dry-run <
[NX] An Angular builder called `writeWorkspace`, this may have had unintended consequences in angular.json
[NX] Double check angular.json before proceeding
...
Error: Cannot find configuration for 'ionic-sample' in /angular.json.
at readProjectConfiguration (/Users/blin4444/.../xplat/myworkspace/node_modules/@nrwl/devkit/src/generators/project-configuration.js:156:15)
at /Users/blin4444/.../xplat/myworkspace/node_modules/@nrwl/workspace/src/generators/convert-to-nx-project/convert-to-nx-project.js:40:71
at Generator.next (<anonymous>)
at fulfilled (/Users/blin4444/.../xplat/myworkspace/node_modules/tslib/tslib.js:114:62)
Cannot find configuration for 'ionic-sample' in /angular.json.
I was able to generate an Ionic app successfully using xplat 12.7.0.
Issue Analytics
- State:
- Created 2 years ago
- Comments:13 (7 by maintainers)
Top Results From Across the Web
Can't create an Angular Library on Nx monorepo
[NX] Angular devkit called `writeWorkspace`, this may have had unintended consequences in workspace.json [NX] Double check workspace.json ...
Read more >Migrating an Angular CLI project to Nx
Migrating an Angular CLI project to Nx. Within an Nx workspace, you gain many capabilities that help you build applications and libraries using...
Read more >Migrate Multiple Angular CLI apps into a Single Nx Monorepo
Nx comes with powerful automated migrations to move an existing Angular CLI app (or also CRA app) to a new Nx workspace.
Read more >The ultimate migration guide to angular-eslint ...
How to set up a new Nx workspace using angular-eslint or migrate an existing Nx workspace from ESLint or TSLint. Tagged with angular,...
Read more >Nx v14 is out — Here is all you need to know!
A lot happened since we released Nx version 13 back in October 2021. Nx has roughly a 6-month major release cycle and so...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
can confirm that this works when generating both angular web and angular nativescript apps (using latest: 13.3.6)
Great news @blin4444 thanks for confirming this. The
ng
issue is likely due to preference on usingnx
cli which all the latest does. We’re in process of integrating directly with @nrwl/devkit which will help streamline things further and while at it we are likely to switch to using https://github.com/nxtend-team/nxtend under hood for the Ionic integration. Feel free to try those with Nx if needing to continue and can always add Ionic platform slice to Nx architecture down road with xplat when wanting to organize things further. The @nrwl/devkit sweeping is occuring now and targeting to have it complete by end of january 2022.