-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Description
Bug Report or Feature Request:
- [x] bug report -> please search issues before submitting
- [ ] feature request
On upgrading to 1.5.0-rc.3 getting error:
app.main.ts:11 Uncaught ReferenceError: platformBrowser is not defined
at eval (app.main.ts:11)
at Object.../../../../../src/scripts/app/app.main.ts (main.bundle.js:46)
at webpack_require (inline.bundle.js:55)
at Object.0 (main.bundle.js:645)
at webpack_require (inline.bundle.js:55)
at webpackJsonpCallback (inline.bundle.js:26)
at main.bundle.js:1
when I run:
ng serve --environment dev --aot true
My app.main.ts contains:
import { enableProdMode } from '@angular/core';
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { AppModule } from './app.module';
import { environment } from '../environments/environment';
if (environment.production) {
enableProdMode();
}
platformBrowserDynamic().bootstrapModule(AppModule).catch(err => console.log(err));
On downgrading back to 1.5.0-rc.2 error goes away
Versions:
@angular/cli 1.5.0-rc.3
Repro steps:
Upgrade to 1.5.0-rc.3 and run:
ng serve --environment dev --aot true
The log given by the failure:
app.main.ts:11 Uncaught ReferenceError: platformBrowser is not defined
at eval (app.main.ts:11)
at Object.../../../../../src/scripts/app/app.main.ts (main.bundle.js:46)
at webpack_require (inline.bundle.js:55)
at Object.0 (main.bundle.js:645)
at webpack_require (inline.bundle.js:55)
at webpackJsonpCallback (inline.bundle.js:26)
at main.bundle.js:1