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.

When running ng serve an error occurs: NgTools_InternalApi_NG_2 not found

See original GitHub issue

Bug Report or Feature Request (mark with an x)

- [x] bug report -> please search issues before submitting
- [ ] feature request

Command (mark with an x)

- [ ] new
- [ ] build
- [x] serve
- [ ] test
- [ ] e2e
- [ ] generate
- [ ] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc

Versions

Node: 8.11.4 NPM: 5.6.0 Angular CLI: 6.2.1

Running ng serve fails.

The log given by the failure

ERROR in node_modules/@angular/compiler-cli/index.d.ts(20,10): error TS2305: Module ‘“/opt/local/apache2/htdocs/angular-components/angular-project/node_modules/@angular/compiler-cli/src/ngtools_api”’ has no exported member ‘NgTools_InternalApi_NG_2’.

Desired functionality

It should compile and run the test site successfully.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8

github_iconTop GitHub Comments

1reaction
kirillgroshkovcommented, Jun 4, 2019

Same issue for us

1reaction
exequielccommented, May 24, 2019

same issue here with

"@angular/compiler": "7.2.0",
"@angular/compiler-cli": "7.2.8",

when running have this error on the console.

Typescript Error Module ‘“@angular/compiler-cli/src/ngtools_api”’ has no exported member ‘NgTools_InternalApi_NG_2’.

Please reopen this issue

Read more comments on GitHub >

github_iconTop Results From Across the Web

Angular CLI Error: The serve command requires to be run in ...
Angular Cli Error: The serve command requires to be run in an Angular project, but a project definition could not be found.
Read more >
ng build - Angular
Option Description Value Type Default Value ‑‑aot Build using Ahead of Time compilation. boolean true ‑‑base‑href Base url for the application being built. string ‑‑delete‑output‑path Delete...
Read more >
The serve command requires to be run in an Angular project ...
... to be run in an Angular project, but a project definition could not be found.https://codedocu.com/Software/Angular/Angular- Error /E...
Read more >
Ways to fix “-bash: ng: command not found” - Medium
Are you sure that Angular is globally installed in your machine? If yes, you can continue to read this article. Else I recommend...
Read more >
ng: command not found (Angular) error [Solved] | bobbyhadz
To solve the error ng: command not found, install the angular cli package globally by running `npm install -g @angular/cli@latest` and restart your...
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