angular-cli icon indicating copy to clipboard operation
angular-cli copied to clipboard

A newly created, unmodified project doesn't work in some version of Chrome and IE

Open dxxvi opened this issue 9 years ago • 7 comments

Bug Report or Feature Request (mark with an x)

- [x] bug report -> please search issues before submitting
- [ ] feature request

Versions.

@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

Repro steps.

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 .

The log given by the failure.

N/A

Desired functionality.

N/A

Mention any other details that might be useful.

N/A

dxxvi avatar Apr 12 '17 14:04 dxxvi

You need to adjust polyfills.ts for your project's supported browsers. The file is heavily commented to aid you in the process.

clydin avatar Apr 12 '17 14:04 clydin

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-original avatar Apr 22 '17 03:04 smorhaim-original

@smorhaim same error~

guodong avatar Apr 22 '17 03:04 guodong

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.

dinvlad avatar Apr 22 '17 03:04 dinvlad

zone.js issue, seems trying to fix it~ https://github.com/angular/zone.js/issues/746

guodong avatar Apr 22 '17 03:04 guodong

@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.

EladZucker avatar May 08 '17 13:05 EladZucker

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.