Reputation: 43
I am trying to update Angular. So I ran ng update --all
from CMD in my Angular project that I created with vs-2015 and in return I got another error in my project:
Error TS2345 Argument of type '{ imports: typeof BrowserModule[]; declarations: typeof AppComponent[]; bootstrap: typeof AppComp...' is not assignable to parameter of type 'NgModule'.
Property 'true' is missing in type '{ imports: typeof BrowserModule[]; declarations: typeof AppComponent[]; bootstrap: typeof AppComp...'.
TypeScript Virtual Projects c:\users\lesibamo\documents\visual studio 2015\Projects\Angular4demo\Angular4demo\src\app\app.module.ts 6 Active
Upvotes: 1
Views: 3859
Reputation: 417
package-lock.json
file node_modules
folder in your angular projectnpm update
ng --version
ng serve
if update success the project should load without error Upvotes: 1