Skip to content
This repository has been archived by the owner on Feb 17, 2024. It is now read-only.

'../@angular/platform-browser-dynamic' no exported member 'bootstrap' #7

Open
mischlecht opened this issue Sep 23, 2016 · 2 comments
Open

Comments

@mischlecht
Copy link

mischlecht commented Sep 23, 2016

I'm getting an error where TS is not recognizing the exported 'bootstrap' function from platform-browser-dynamic.

ERROR in [default] ../retain-app/src/main.ts:1:9 
Module '"../retain-app/node_modules/@angular/platform-browser-dynamic/index"' has no exported member 'bootstrap'.

While watching the video 'Yo, World!' on AngularClass, I imported bootstrap in main.ts like so:

import { bootstrap } from '@angular/platform-browser-dynamic';

This is the dependency in the package.json:

"@angular/platform-browser-dynamic": "^2.0.0",

Any help is appreciated!

@zh-wowtv
Copy link

zh-wowtv commented Oct 5, 2016

The same problem here!

@skynode
Copy link

skynode commented Oct 9, 2016

What @angular version are you using? I'm using the final 2.0.0 version and you're correct the bootstrap method is not supported anymore. Import platformBrowserDynamic instead, and do this:

platformBrowserDynamic().bootstrapModule(yourAppModule)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants