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.

failing `rename-ng-update-into-nx-migrate` migration

See original GitHub issue

Current Behavior

Failing migration from Nx 10 to Nx 11

Expected Behavior

Error handling or successful migration

Steps to Reproduce

Cannot provide reproduction steps.

Failure Logs

Running migration rename-ng-update-into-nx-migrate
host.exists is not a function
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
/Users/upstateinteractive/code/community/nx-ddd-plugin/node_modules/yargs/build/lib/yargs.js:1132
                throw err;
                ^

Error: Command failed: yarn tao migrate --run-migrations=migrations.json
    at checkExecSyncError (child_process.js:616:11)
    at Object.execSync (child_process.js:652:15)
    at Object.handler (/Users/upstateinteractive/code/community/nx-ddd-plugin/node_modules/@nrwl/workspace/src/command-line/nx-commands.js:76:21)
    at Object.runCommand (/Users/upstateinteractive/code/community/nx-ddd-plugin/node_modules/yargs/build/lib/command.js:196:48)
    at Object.parseArgs [as _parseArgs] (/Users/upstateinteractive/code/community/nx-ddd-plugin/node_modules/yargs/build/lib/yargs.js:1043:55)
    at Object.get [as argv] (/Users/upstateinteractive/code/community/nx-ddd-plugin/node_modules/yargs/build/lib/yargs.js:986:25)
    at Object.initLocal (/Users/upstateinteractive/code/community/nx-ddd-plugin/node_modules/@nrwl/cli/lib/init-local.js:23:13)
    at Object.<anonymous> (/Users/upstateinteractive/code/community/nx-ddd-plugin/node_modules/@nrwl/cli/bin/nx.js:41:18)
    at Module._compile (internal/modules/cjs/loader.js:1063:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10) {
  status: 1,
  signal: null,
  output: [ null, null, null ],
  pid: 3189,
  stdout: null,
  stderr: null
}

Environment

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
vsavkincommented, Feb 6, 2021

Folks. I fixed it in 11.3.0-beta.2 (if you run nx migrate 11.3.0-beta.2, the issue won’t be there). We are going to cut a stable release next week.

Thank you!

0reactions
laurentsdcommented, Jun 4, 2021

I was running into this error today when upgrading Nx from 10.4.12 to 11.6.3. It only worked after I upgraded Node from 10.19 to 12.16

Read more comments on GitHub >

github_iconTop Results From Across the Web

Entity Framework code-first: migration fails with update ...
I am going to upvote those issues. As for now, I could workaround my problem by deleting the wohole migration folder, the database...
Read more >
Tips for Fixing Ruby Migration Errors - Sweetcode.io
Here are some things I have learned to resolve Ruby migration errors involving duplicate columns. Problem: Duplicate column error.
Read more >
Migration error .-Command execution failed on the local server
Cause: Command execution failed on the local server with non-zero exit code. That is a critical error, migration was stopped. Any ideas?
Read more >
Migration fail when upgrading from v19.0.1 to v20.0.1
Hello, I tried to upgrade Keycloak from 19.0.1 to 20.0.1 but migrations are failing . Anyone know what might be the issue ?...
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