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.

Cannot find module '@angular-devkit/core'

See original GitHub issue

When trying to generate the API I get “Cannot find module ‘@angular-devkit/core’”

Require stack:
- C:\Users\Adrian Wix\Code\agency\go-playground\node_modules\@nrwl\tao\src\commands\ngcli-adapter.js
- C:\Users\Adrian Wix\Code\agency\go-playground\node_modules\@nrwl\tao\src\commands\generate.js
- C:\Users\Adrian Wix\Code\agency\go-playground\node_modules\@nrwl\tao\index.js
- C:\Users\Adrian Wix\Code\agency\go-playground\node_modules\@nrwl\cli\lib\init-local.js
- C:\Users\Adrian Wix\Code\agency\go-playground\node_modules\@nrwl\cli\bin\nx.js
- C:\Users\Adrian Wix\AppData\Roaming\npm\node_modules\nx\node_modules\@nrwl\cli\bin\nx.js
- C:\Users\Adrian Wix\AppData\Roaming\npm\node_modules\nx\bin\nx.js

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
toniztcommented, Dec 21, 2021

I’m getting NOT SUPPORTED: keyword "id", use "$id" for schema ID after I have installed the missing @angular packages and tried generating an app again.

i was able to “fix” this by editing the file node_modules/@nx-go/nx-go/src/schematics/application/schema.json and changing id to $id. After that re run the plugin, it will work. Also, when running the nx build <app-name> command, you’ll get similar error ‘Cannot find module @angular-devkit/architect’. Install that dependency to make it work. For now all of the scripts are working, i’m just getting this warning that I hope doesn’t cause issues in the future:

[NX] Angular devkit called `writeWorkspace`, this may have had unintended consequences in workspace.json
[NX] Double check workspace.json before proceeding
CREATE apps/api/main.go
CREATE apps/api/main_test.go
UPDATE workspace.json
1reaction
ghazninattarshahcommented, Sep 22, 2021

The workaround is to manually install below packages.

yarn add -D @angular-devkit/core
yarn add -D @angular-devkit/schematics
Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot find module '@angular-devkit/core' - Stack Overflow
I did it by deleting package-lock.json and the node_modules folder. After that run "npm install" and start the application again. Share.
Read more >
Could not find module '@angular-devkit/build-angular'
To solve the error "Could not find module '@angular-devkit/build-angular'", make sure to install the package by opening your terminal in your project's root ......
Read more >
An unhandled exception occurred: Cannot find module ...
It appears that the package manager is placing some of the dependencies required by the migrations within @angular/core (and potentially @ ...
Read more >
Fixing Could not find module @angular-devkit/build-angular ...
Solution 1: Delete node_modules folder and run npm install · Solution 2 : Install @angular-devkit/build-angular package as a dev dependency.
Read more >
Exception - Could Not Find Module “@angular-devkit/build ...
This error occurs because of missing dev dependency which is introduced newly in Angular 6.0 and above. ... In most of the cases,...
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