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.

Issues with upgrading from 13.2.4 to 13.3.1

See original GitHub issue

Current Behavior

I am trying to upgrade my project from 13.2.4 to 13.3.1, but migration fails complaining about mfe configuration update, but I don’t have mfe set.

Expected Behavior

I expect the migration to work smoothly.

Steps to Reproduce

Migrate a project with nx 13.2.4 installed to 13.3.1.

Failure Logs

`> NX Running migrations from migrations.json

Running migration 13-3-0-tsc-location Successfully finished 13-3-0-tsc-location

Running migration update-mfe-config-to-module-syntax Cannot read property ‘implementation’ of undefined /Volumes/data/saas/lomvo/lomvo/client/node_modules/@nrwl/workspace/node_modules/yargs/build/lib/yargs.js:1132 throw err;

Error: Command failed: /var/folders/d7/38c7n7nj0cg00ngyfhrhjcnm0000gn/T/tmp-11316-9bs79651qDJ1/node_modules/.bin/tao migrate --run-migrations at checkExecSyncError (child_process.js:643:11) at execSync (child_process.js:679:15) at Object.handler (/Volumes/data/saas/lomvo/lomvo/client/node_modules/@nrwl/workspace/src/command-line/nx-commands.js:125:42) at Object.runCommand (/Volumes/data/saas/lomvo/lomvo/client/node_modules/@nrwl/workspace/node_modules/yargs/build/lib/command.js:196:48) at Object.parseArgs [as _parseArgs] (/Volumes/data/saas/lomvo/lomvo/client/node_modules/@nrwl/workspace/node_modules/yargs/build/lib/yargs.js:1043:55) at Object.get [as argv] (/Volumes/data/saas/lomvo/lomvo/client/node_modules/@nrwl/workspace/node_modules/yargs/build/lib/yargs.js:986:25) at initLocal (/Volumes/data/saas/lomvo/lomvo/client/node_modules/@nrwl/cli/lib/init-local.js:28:79) at Object.<anonymous> (/Volumes/data/saas/lomvo/lomvo/client/node_modules/@nrwl/cli/bin/nx.js:45:32) at Module._compile (/Volumes/data/Users/ivicac/.nvm/versions/node/v14.17.1/lib/node_modules/nx/node_modules/v8-compile-cache/v8-compile-cache.js:192:30) at Object.Module._extensions…js (internal/modules/cjs/loader.js:1114:10) { status: 1, signal: null, output: [ null, null, null ], pid: 11340, stdout: null, stderr: null } `

Environment

`Node : 14.17.1 OS : darwin x64 npm : 6.14.13

nx : undefined @nrwl/angular : 13.2.4 @nrwl/cli : 13.2.4 @nrwl/cypress : 13.2.4 @nrwl/devkit : 13.2.4 @nrwl/eslint-plugin-nx : 13.2.4 @nrwl/express : undefined @nrwl/jest : 13.2.4 @nrwl/linter : 13.2.4 @nrwl/nest : undefined @nrwl/next : undefined @nrwl/node : undefined @nrwl/nx-cloud : undefined @nrwl/react : undefined @nrwl/react-native : undefined @nrwl/schematics : undefined @nrwl/tao : 13.2.4 @nrwl/web : undefined @nrwl/workspace : 13.2.4 @nrwl/storybook : 13.2.4 @nrwl/gatsby : undefined typescript : 4.4.4 rxjs : 7.4.0

Community plugins: @angular/animations: 13.0.3 @angular/cdk: 13.1.0 @angular/common: 13.0.3 @angular/compiler: 13.0.3 @angular/core: 13.0.3 @angular/forms: 13.0.3 @angular/google-maps: 13.1.0 @angular/localize: 13.0.3 @angular/platform-browser: 13.0.3 @angular/platform-browser-dynamic: 13.0.3 @angular/router: 13.0.3 @datorama/akita: 7.0.1 @ng-bootstrap/ng-bootstrap: 10.0.0 @ngneat/transloco: 3.1.1 @pebula/ngrid: 4.0.0-alpha.3 @angular-devkit/build-angular: 13.0.4 @angular/cli: 13.0.4 @angular/compiler-cli: 13.0.3 @angular/language-service: 13.0.3 @ngneat/spectator: 9.0.0`

migrations.json

{ "migrations": [ { "version": "13.3.0-beta.0", "description": "@nrwl/workspace:tsc is now @nrwl/js:tsc", "cli": "nx", "implementation": "./src/migrations/update-13-3-0/update-tsc-executor-location", "package": "@nrwl/workspace", "name": "13-3-0-tsc-location" }, { "cli": "nx", "version": "13.3.0-beta.0", "description": "In Angular version 13, the ESM became a first class citizen. This means the webpack config generated must be modified to support modules.", "factory": "./src/migrations/update-13-3-0/update-mfe-webpack-config", "package": "@nrwl/angular", "name": "update-mfe-config-to-module-syntax" }, { "cli": "nx", "version": "13.3.0-beta.0", "description": "Update eslint-rules jest.config.js in order to support ESLint v8 exports mapping, remove category field", "factory": "./src/migrations/update-13-3-0/eslint-8-updates", "package": "@nrwl/linter", "name": "eslint-8-updates" } ] }

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:10
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

5reactions
patrickmichalinacommented, Dec 15, 2021

Same here. Anything after "@nrwl/workspace": "13.2.4", and I get …

Error: Unable to resolve @nrwl/workspace:tsc.
Cannot find executor 'tsc' in .../node_modules/@nrwl/workspace/executors.json

Error: Unable to load hasher for task "{{name}}:build"
5reactions
heavybeardcommented, Dec 11, 2021

I’m from 13.2.2 version and I received a similar issue

Running migration 13-3-0-tsc-location
Successfully finished 13-3-0-tsc-location
---------------------------------------------------------
Running migration update-mfe-config-to-module-syntax
The "path" argument must be of type string. Received undefined
/Users/andrea/workspace/nibol-manager-new/node_modules/@nrwl/workspace/node_modules/yargs/build/lib/yargs.js:1132
                throw err;
                ^

Error: Command failed: /var/folders/cv/gd18xb4s09d3b5z5h24b6y8h0000gn/T/tmp-28236-ONjDnhu7qu57/node_modules/.bin/tao migrate --run-migrations
    at checkExecSyncError (node:child_process:826:11)
    at execSync (node:child_process:900:15)
    at Object.handler (/Users/andrea/workspace/nibol-manager-new/node_modules/@nrwl/workspace/src/command-line/nx-commands.js:125:42)
    at Object.runCommand (/Users/andrea/workspace/nibol-manager-new/node_modules/@nrwl/workspace/node_modules/yargs/build/lib/command.js:196:48)
    at Object.parseArgs [as _parseArgs] (/Users/andrea/workspace/nibol-manager-new/node_modules/@nrwl/workspace/node_modules/yargs/build/lib/yargs.js:1043:55)
    at Object.get [as argv] (/Users/andrea/workspace/nibol-manager-new/node_modules/@nrwl/workspace/node_modules/yargs/build/lib/yargs.js:986:25)
    at initLocal (/Users/andrea/workspace/nibol-manager-new/node_modules/@nrwl/cli/lib/init-local.js:27:79)
    at Object.<anonymous> (/Users/andrea/workspace/nibol-manager-new/node_modules/@nrwl/cli/bin/nx.js:45:32)
    at Module._compile (/usr/local/lib/node_modules/nx/node_modules/v8-compile-cache/v8-compile-cache.js:192:30)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10) {
  status: 1,
  signal: null,
  output: [ null, null, null ],
  pid: 28244,
  stdout: null,
  stderr: null
}
Read more comments on GitHub >

github_iconTop Results From Across the Web

I keep trying to update my iPad to 13.2.3… - Apple Community
I keep trying to update my iPad to 13.2.3 and keep getting an error message, any tips? More Less ... iPadOS is up...
Read more >
Upgrade Problem - GitLab Forum
When we try to upgrade the latest version, it gives an error as “12.9.2 is the newest version.” How can we fix it...
Read more >
5 Things to Know About the iOS 13.2.3 Update - Gotta Be Mobile
iOS 13.2.3 is a maintenance upgrade with a short list of bug fixes on board: Fixes an issue where system search and search...
Read more >
Angular update from 8 to 13 peer dependency problem
Found it ! That was a problem with my node version. I was using v16.9 and install node v14.19 solve my problem. I...
Read more >
How to upgrade Angular version to latest release (version 13)
Make sure the project folder as node_modules folder otherwise this command will throw an error. You can read more about ng update command...
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