I\'m getting this error after migrating to NgModule, the error doesn\'t help too much, any advice please?
Error: Error: Unexpected value \'undefined\' import
I had this error because I had an index.ts
file in the root of my app that was exporting my app.component.ts
. So I thought I could do the following:
import { AppComponent } from './';
This worked and gave me no red squiggly lines and even intellisense brings up AppComponent when you start typing it. But come to find out it was causing this error. After I changed it to:
import { AppComponent } from './app.component';
The error went away.