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.

Error "Cannot find tsconfig.base.json" when running migration `update-invalid-import-paths` (v12.9.0)

See original GitHub issue

Current Behavior

When running nx migrate --run-migrations=migrations.json there is an error while running migration update-invalid-import-paths: Cannot find tsconfig.base.json.

This occurred after upgrading from 12.8.0 to 12.9.0. Note that there’s a tsconfig.json in the root that was migrated from tsconfig.base.json by Nx previously AFAICT.

Expected Behavior

Upgrade to 12.9.0.

Steps to Reproduce

npx nx migrate latest
npm install
npx nx migrate --run-migrations=migrations.json

Failure Logs

NX Running migrations from ‘migrations.json’

Running migration update-invalid-import-paths Cannot find tsconfig.base.json Command failed: /var/folders/6b/jjddfddn7rddfcq5mw04qz8c0000gn/T/tmp-13499-ux2vOCnkzWHO/node_modules/.bin/tao migrate --run-migrations=migrations.json

Environment

Node : 12.21.0 OS : darwin x64 npm : 6.14.11

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

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
Coly010commented, Oct 13, 2021

This has been fixed, however, it has not yet been released. When we release a new version of Nx containing this fix, I’ll update here 😃

1reaction
Coly010commented, Oct 20, 2021

Nx 13 has been released including this fix 🎉

Read more comments on GitHub >

github_iconTop Results From Across the Web

Angular Nx Nrwl - Cannot parse tsconfig.base.json
When i run i'm getting the error Cannot parse tsconfig.base.json: PropertyNameExpected in JSON at position 891 . The same happens when i try...
Read more >
Parsing Error: Cannot read file 'tsconfig.json' | bobbyhadz
eslintrc.js file to set the tsconfigRootDir option to __dirname to force eslint to resolve your project configuration relative to the folder where ....
Read more >
TS - Skipping files with no tsconfig.json - Sonar Community
I have looked into similar threads regarding this issue, I have tried changing the base path of the sources directory to no avail....
Read more >
nrwl-nx/community - Gitter
Hello chat ! I'm facing a small issue with path aliases and passed many hours without solving the issue. I have this path...
Read more >
TypeScript configuration - Angular
The tsconfig.base.json file specifies the base TypeScript and Angular compiler ... For more information TypeScript configuration files, see the official ...
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