Skip to content

When running ng serve an error occurs: NgTools_InternalApi_NG_2 not found #12276

@jeffkumar

Description

@jeffkumar

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs: repro stepsWe cannot reproduce the issue with the information given

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions