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.

Update 12 -> 13 fails with error, doesn't allow migration

See original GitHub issue

Current Behavior

Was on Nx 12

Expected Behavior

Upgrade to Nx 13 Should work out of box as far as I can tell from release notes and https://blog.nrwl.io/core-performance-improvements-webpack-5-react-native-and-more-in-nx-13-cfe63c7415f1

Steps to Reproduce

After upgrade, I tried a build and got:

ERROR  As of Nx 13, project configuration should be moved from nx.json to workspace.json/project.json. Please run "nx format" to fix this.

also tried:

nx g @nrwl/workspace:convert-to-nx-project --all

and got the same.

Running nx:format gives:

Error: Cannot find module 'prettier'
Require stack:
- node_modules/@nrwl/workspace/src/command-line/format.js
- node_modules/@nrwl/workspace/src/command-line/nx-commands.js
- node_modules/@nrwl/cli/lib/init-local.js
- node_modules/@nrwl/cli/bin/nx.js

I wonder if this relates to #7421 as I’m using Yarn

Failure Logs

Environment

Node : 16.6.1 OS : linux x64 yarn : 1.22.11

nx : 13.0.1 @nrwl/angular : Not Found @nrwl/cli : 13.0.1 @nrwl/cypress : 13.0.1 @nrwl/devkit : 13.0.1 @nrwl/eslint-plugin-nx : Not Found @nrwl/express : Not Found @nrwl/jest : 13.0.1 @nrwl/linter : 13.0.1 @nrwl/nest : Not Found @nrwl/next : Not Found @nrwl/node : Not Found @nrwl/nx-cloud : 12.5.1 @nrwl/react : 13.0.1 @nrwl/schematics : Not Found @nrwl/tao : 13.0.1 @nrwl/web : 13.0.1 @nrwl/workspace : 13.0.1 @nrwl/storybook : 13.0.1 @nrwl/gatsby : Not Found typescript : 4.3.5

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:8

github_iconTop GitHub Comments

5reactions
leandrocrscommented, Dec 14, 2021

I managed to solve it: Delete the projects entry in nx.json, run nx format and nx migrate --run-migrations as mentioned in cli instructions.

5reactions
ykshtcommented, Dec 10, 2021

@ngfelixl I had the same issue. Fixed by manual creating workspace.json and moving “projects” property from nx.json to workspace.json https://nx.dev/l/a/core-concepts/configuration

Read more comments on GitHub >

github_iconTop Results From Across the Web

Angular migration from 12 to 13 getting error : Cannot ...
sourceMap' as it is undefined." Im using below command which is provide on offitial site npx @angular/cli@13 update @angular/core@13 @angular/ ...
Read more >
Upgrade and Migrate Reporting Services - SQL Server ...
Invalid certificates will cause upgrade to fail and an error message similar to the following will be written to the Reporting Services Log ......
Read more >
Troubleshooting GitLab Runner
This error is often due to your shell loading your profile, and one of the scripts is causing the failure. Example of dotfiles...
Read more >
Troubleshoot Tableau Server Install and Upgrade
This may be related to a permissions issue on your computer. The user is signed into Windows and installing Tableau must have administrator...
Read more >
Interpret Google Workspace Migrate error messages
The source data causing the issue is probably defective. You might also see this error when migrating an attachment that is unsupported by...
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