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.

Unable to determine 'tsconfig.json' file in workspace config.

See original GitHub issue

Current Behavior

I just ran nx migrate --run-migrations

(I had just previously run nx migrate latest && npm i && nx migrate --run-migrations but it was missing a couple of dependencies –

  • @angular-devkit/schematics and
  • @schematics/angular/utility/change

I installed those and came back to run migrations.)

However under

Running migration migration-v13

For every many of my projects it said it was skipping them. For example

Skipping migration for project shared-util. Unable to determine 'tsconfig.json' file in workspace config.

Expected Behavior

Migrations works for every project

Steps to Reproduce

I’m guessing this is specific to my workspace so apart from the steps above I don’t think I can create something that will reproduce the error.

Failure Logs

I’m not sure what I could provide more than what I have.

Environment

Node : 14.17.1 OS : darwin x64 npm : 7.20.0

nx : 13.8.7 @nrwl/angular : 13.8.7 @nrwl/cli : 13.8.7 @nrwl/cypress : 13.8.7 @nrwl/detox : undefined @nrwl/devkit : 13.8.7 @nrwl/eslint-plugin-nx : 13.8.7 @nrwl/express : undefined @nrwl/jest : 13.8.7 @nrwl/js : undefined @nrwl/linter : 13.8.7 @nrwl/nest : undefined @nrwl/next : undefined @nrwl/node : undefined @nrwl/nx-cloud : undefined @nrwl/react : undefined @nrwl/react-native : undefined @nrwl/schematics : undefined @nrwl/storybook : 13.8.7 @nrwl/tao : 13.8.7 @nrwl/web : undefined @nrwl/workspace : 13.8.7 typescript : 4.5.5 rxjs : 6.6.7


Community plugins: @angular-material-extensions/password-strength: 8.2.1 @angular/animations: 13.2.6 @angular/cdk: 13.2.6 @angular/common: 13.2.6 @angular/compiler: 13.2.6 @angular/core: 13.2.6 @angular/fire: 7.1.1 @angular/forms: 13.2.6 @angular/material: 13.2.6 @angular/material-luxon-adapter: 13.0.2 @angular/material-moment-adapter: 13.1.1 @angular/platform-browser: 13.2.6 @angular/platform-browser-dynamic: 13.2.6 @angular/router: 13.2.6 @ngrx/component-store: 13.0.2 @ngrx/effects: 13.0.2 @ngrx/entity: 13.0.2 @ngrx/router-store: 13.0.2 @ngrx/store: 13.0.2 @angular-devkit/build-angular: 13.2.6 @angular/compiler-cli: 13.2.6 @angular/language-service: 13.2.6 @ngrx/schematics: 13.0.2 @ngrx/store-devtools: 13.0.2

Issue Analytics

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

github_iconTop GitHub Comments

6reactions
andydavies-occommented, Nov 21, 2022

I have just carried out a migration from 14.2 to latest on an nx angular project and am observing the following:

  • my project’s libraries were all generated with the nx-webstorm plugin and are all non-buildable.
  • none of the libraries have any reference to a tsconfig.json file in their respective project.json files
  • When I run nx migrate --run-migrations some of my libraries get updated but some do not and the logger prints Unable to determine 'tsconfig.json' file in workspace config.
  • However when I look at the changes made to the files by the migration, some of the modules that were flagged as skipped have actually been modified

I am at a bit of a loss as to how to get confidence that the migrations have fully run as expected. Any guidance would be much appreciated.

3reactions
NicholaAlkhouricommented, Mar 21, 2022

@prateek-giddh I can think of two possibilities: 1- one of your projects/libraries doesn’t have the architect properties, even if you don’t need it just add it as empty object "architect": {}, 2- you didn’t specified the builder for your target (the test in your case), for example I use “@nrwl/jest:jest” builder

"test": {
          "builder": "@nrwl/jest:jest",
          "outputs": ["coverage/libs/dir/lib1"],
          "options": {
            "tsConfig": "libs/dir/lib1/tsconfig.lib.json",
            "jestConfig": "libs/dir/lib1/jest.config.js",
            "passWithNoTests": true
          }
        },
Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I tell Angular 12 during an upgrade where my tsconfig ...
The module is failing when it tries to reach my angular.json file and parse all the tsconfig paths in the build and test...
Read more >
TS - Skipping files with no tsconfig.json - Sonar Community
If the provided config is tsconfig.app.json, sonarqube will only find the two files in the files array because it cannot parse the entrypoints ......
Read more >
TypeScript configuration - Angular
A given Angular workspace contains several TypeScript configuration files. At the root tsconfig.json file specifies the base TypeScript and Angular compiler ...
Read more >
Documentation - What is a tsconfig.json - TypeScript
The presence of a tsconfig.json file in a directory indicates that the directory is the root of a TypeScript project. The tsconfig.json file...
Read more >
TypeScript Compiling with Visual Studio Code
A tsconfig.json file defines the TypeScript project settings, such as the ... VS Code will automatically detect workspace versions of TypeScript that are ......
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