Opened up a brand new project, changed absolutly nothing, and when I serve the project I get the following error:
Error: node_modules/@angular/platform-browser/platform-browser.d.ts:44:22 - error NG6002: Appears in the NgModule.imports of AppModule, but could not be resolved to an NgModule
class.
This likely means that the library (@angular/platform-browser) which declares BrowserModule has not been processed correctly by ngcc, or is not compatible with Angular Ivy. Check if a newer version of the library is available, and update if so. Also consider checking with the library's authors to see if the library is expected to be compatible with Ivy.
44 export declare class BrowserModule {
---------------------------------------------------------------------------------------------------------
things that I have tried that don't work:
- re-installing npm
- rolling npm back to an earlier version
- opting out of ivy (enableivy=false and aot=false)
- serve --prod
- serve again and again
Is there a doctor in the house?!