When running ng serve an error occurs: NgTools_InternalApi_NG_2 not found
See original GitHub issueBug 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:
- Created 5 years ago
- Comments:8
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Same issue for us
same issue here with
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