My Atom editor shows:
Module '"C:/express4/node_modules/@angular/platform-browser-dynamic/index"' has no exported member 'bootstrap'.at line 2 col 10
For the below import in a TypeScript file:
import { bootstrap } from '@angular/platform-browser-dynamic';
Any idea what could be the reason for this warning?
Assuming you are on Angular RC6/RC5, you can try below code:
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { AppModule } from './app.module';
platformBrowserDynamic().bootstrapModule(AppModule);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With