question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Nx 13.3.x NOTE: [NX] An Angular builder called writeWorkspace, this may have had unintended consequences in workspace.json

See original GitHub issue

When 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:closed
  • Created 2 years ago
  • Comments:13 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
jmarlow4commented, Dec 15, 2021

can confirm that this works when generating both angular web and angular nativescript apps (using latest: 13.3.6)

1reaction
NathanWalkercommented, Dec 14, 2021

Great news @blin4444 thanks for confirming this. The ng issue is likely due to preference on using nx 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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found