x)- [x] bug report -> please search issues before submitting
- [ ] feature request
@angular/cli: 1.0.0
node: 7.8.0
os: win32 x64
@angular/common: 4.0.0
@angular/compiler: 4.0.0
@angular/core: 4.0.0
@angular/forms: 4.0.0
@angular/http: 4.0.0
@angular/platform-browser: 4.0.0
@angular/platform-browser-dynamic: 4.0.0
@angular/router: 4.0.0
@angular/cli: 1.0.0
@angular/compiler-cli: 4.0.0
npm --version: 4.4.4
generate a new project with ng new ... then ng serve
browse http://localhost:4200
Firefox 53.0 (maybe beta 10) 64-bit is ok.
Chrome Version 43.0.2357.134 m and IE 11.0.9600.18617 (document mode Edge) (that's what my company is using) show Loading ... The Chrome console says: Uncaught TypeError: Cannot read property 'apply' of undefined common.es5.js:3109
Edit: No issue with Chrome Version 57.0.2987.133 .
N/A
N/A
N/A
You need to adjust polyfills.ts for your project's supported browsers. The file is heavily commented to aid you in the process.
The default polyfill should work the way it is, and even then, brand-new... out-of-the-box should work.
Brand new app
Steps:
ng new test
cd test
ng start
This will gives the apply undefined error on Chrome and other browsers.
@smorhaim same error~
It worked before, I haven't modified anything in my code, just rerun my CD build (CodeBuild), it suddenly started to show this error with Chrome (58.0.3029.81-1)
polyfills.bundle.js 3894:39 Uncaught TypeError: Cannot read property 'apply' of undefined if that helps.
zone.js issue, seems trying to fix it~ https://github.com/angular/zone.js/issues/746
@guodong why do the suggest zone.js issue here ?
notice the error is :
Uncaught TypeError: Cannot read property 'apply' of undefined common.es5.js:3109
it is not the same as the zone.js case.
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
_This action has been performed automatically by a bot._
Most helpful comment
The default polyfill should work the way it is, and even then, brand-new... out-of-the-box should work.
Brand new app
Steps:
ng new test
cd test
ng start
This will gives the apply undefined error on Chrome and other browsers.