Skip to main content
correct spelling, quoted error and make use of the code block
Source Link

I am trying to update my angular soAngular. So I ran "ng update --all"ng update --all from cmdCMD in my angularAngular project that iI created with vs-2015 and in return my project iI got this 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 "

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

I am trying to update my angular so I ran "ng update --all" from cmd in my angular project that i created with vs-2015 and in return my project i got this 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 "

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

Source Link
Tipe
  • 43
  • 1
  • 9

how to fix "Cannot find module '@angular-devkit/schematics' "

I am trying to update my angular so I ran "ng update --all" from cmd in my angular project that i created with vs-2015 and in return my project i got this 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 "