ANGULAR2 Startup Project error, similar to the following error, I hope to be useful to you, error message: Error in Appmodule isn't an ngmodule
This type of problem occurs because a different version causes the startup to fail
The following solutions are described below:
1. View dependent components NPM LS typescript
The information in the diagram shows that this project needs to rely on version 2.2.2, the version 2.3.2 installed on the computer.
2, enter CNPM install typescript [email protected], install a 2.2.2 version. (See another blog, I set the local image to CNPM, this side not much introduction)
3. Open the project and find the "typescript" in the Package.json file instead of "~2.2.2"
3, enter CNPM install re-initialize the installation
4, you can view the next dependent components NPM LS typescript, do not view also line;
5, can now start the service normally, input npm start or NG serve, wait a moment, after the successful launch, the browser input http://localhost:4200/is done.
ANGULAR2 Error in Startup project: Error in Appmodule isn't an ngmodule