angular / angular-cli

CLI tool for Angular
https://cli.angular.io
MIT License
26.77k stars 11.98k forks source link

Uncaught TypeError: Cannot read property 'apply' of undefined common.es5.js #6430

Closed vighneshbendre closed 6 years ago

vighneshbendre commented 7 years ago

Bug Report or Feature Request (mark with an x)

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

Versions.

Windows 7 Professional
@angular/cli: 1.0.4
node: 6.10.3
os: win32 x64
@angular/common: 4.1.3
@angular/compiler: 4.1.3
@angular/core: 4.1.3
@angular/forms: 4.1.3
@angular/http: 4.1.3
@angular/platform-browser: 4.1.3
@angular/platform-browser-dynamic: 4.1.3
@angular/router: 4.1.3
@angular/cli: 1.0.4
@angular/compiler-cli: 4.1.3

Repro steps.

npm -v
3.10.10

node -v
v6.10.3

npm install -g @angular/cli
ng new Angular4
cd Angular4
ng serve

The log given by the failure.

ng serve does not throw errors. But browser has following error:

Uncaught TypeError: Cannot read property 'apply' of undefined
combine @ common.es5.js:3091
ENTITIES @ common.es5.js:2941
__webpack_require__ @ bootstrap 6518a66546b9401e7158:52
module.exports @ http.es5.js:2185
__webpack_require__ @ bootstrap 6518a66546b9401e7158:52
webpackJsonp.104 @ src async:7
__webpack_require__ @ bootstrap 6518a66546b9401e7158:52
webpackJsonp.243 @ main.bundle.js:160
__webpack_require__ @ bootstrap 6518a66546b9401e7158:52
webpackJsonpCallback @ bootstrap 6518a66546b9401e7158:23
(anonymous function) @ main.bundle.js:1

Desired functionality.

I would like to run a sample application provided in https://cli.angular.io/

Mention any other details that might be useful.

This is a fresh start. This system had no node/npm/Angular/CLI installed before.
grapgrap commented 7 years ago

i have same issue in ie11 only

image

ahmetkizilkaya commented 7 years ago

I have same issue in ie11 and chrome. firefox is well.

vighneshbendre commented 7 years ago

Few more details: Chrome Version 44.0.2403.157 m. IE Version 11.0.9600.18638CO

This error occurs even when upgrading from Angular 2

librasean commented 7 years ago

I've just encountered this also. Seems to be browser version dependent, Serving a prod build from single web server. browser running Chrome 44.0.2403.107 has problem browser running Chrome 48.0.2546.97 ran it fine

vighneshbendre commented 7 years ago

Hi, just checking to see if there's any update on the issue...

jamsiedaly commented 7 years ago

I would also be interested in any update

gioragutt commented 7 years ago

Any update on that?

kabb5 commented 7 years ago

Anyone come up with a workaround?

detonateyin commented 7 years ago

Same problem.Is anyone solved now?

kkotak commented 6 years ago

Angular CLI: 1.6.6 Node: 9.2.1 OS: darwin x64 Angular: 5.2.2 ... animations, common, compiler, compiler-cli, core, forms ... http, platform-browser, platform-browser-dynamic ... platform-server, router, service-worker

@angular/cdk: 5.1.0 @angular/cli: 1.6.6 @angular/flex-layout: 2.0.0-beta.10-4905443 @angular/material: 5.1.0 @angular-devkit/build-optimizer: 0.0.42 @angular-devkit/core: 0.0.29 @angular-devkit/schematics: 0.0.52 @ngtools/json-schema: 1.1.0 @schematics/angular: 0.1.17 typescript: 2.6.1 webpack: 3.10.0

Just started seeing this error on Chrome 63.03239. Only shows with prod build.

main.0df4f12bc48121b66222.bundle.js:1 ERROR TypeError: Cannot read property 'apply' of undefined at e.project (main.0df4f12bc48121b66222.bundle.js:1) at e._next (main.0df4f12bc48121b66222.bundle.js:1) at e.next (main.0df4f12bc48121b66222.bundle.js:1) at e._next (main.0df4f12bc48121b66222.bundle.js:1) at e.next (main.0df4f12bc48121b66222.bundle.js:1) at e.next (main.0df4f12bc48121b66222.bundle.js:1) at e._next (main.0df4f12bc48121b66222.bundle.js:1) at e.next (main.0df4f12bc48121b66222.bundle.js:1) at n.observe (main.0df4f12bc48121b66222.bundle.js:1) at e.dispatch (main.0df4f12bc48121b66222.bundle.js:1)

Interestingly Firefox 59.0b4 shows the following instead -

ERROR TypeError: c.a.merge is undefined Stack trace: fn/</<@http://localhost:8080/main.31c90e2b90310b432853.bundle.js:1:1264165 5jKg/r</e.prototype._next@http://localhost:8080/main.31c90e2b90310b432853.bundle.js:1:196719 E9/g/a</e.prototype.next@http://localhost:8080/main.31c90e2b90310b432853.bundle.js:1:337931 E9/g/a</e.prototype._next@http://localhost:8080/main.31c90e2b90310b432853.bundle.js:1:338248 E9/g/a</e.prototype.next@http://localhost:8080/main.31c90e2b90310b432853.bundle.js:1:337931 TO51/c</e.prototype.next@http://localhost:8080/main.31c90e2b90310b432853.bundle.js:1:1002683 E9/g/a</e.prototype._next@http://localhost:8080/main.31c90e2b90310b432853.bundle.js:1:338248 E9/g/a</e.prototype.next@http://localhost:8080/main.31c90e2b90310b432853.bundle.js:1:337931 PAZ8/o</n.prototype.observe@http://localhost:8080/main.31c90e2b90310b432853.bundle.js:1:646762 YRqN/r</e.dispatch@http://localhost:8080/main.31c90e2b90310b432853.bundle.js:1:1191340 GTlS/u</e.prototype._execute@http://localhost:8080/main.31c90e2b90310b432853.bundle.js:1:391880 Gcw1/o</e.prototype.execute@http://localhost:8080/main.31c90e2b90310b432853.bundle.js:1:393145 wclm/i</e.prototype.flush@http://localhost:8080/main.31c90e2b90310b432853.bundle.js:1:7661648 Gcw1/o</e.prototype.schedule@http://localhost:8080/main.31c90e2b90310b432853.bundle.js:1:393018 wclm/o</n.prototype.schedule@http://localhost:8080/main.31c90e2b90310b432853.bundle.js:1:7661263 cDNt/on</n.prototype.schedule/<@http://localhost:8080/main.31c90e2b90310b432853.bundle.js:1:1262146 eFQL/</</</u</t.prototype.invoke@http://localhost:8080/polyfills.75d6e1366e9ec579513e.bundle.js:1:44995 eFQL/</</</o</e.prototype.run@http://localhost:8080/polyfills.75d6e1366e9ec579513e.bundle.js:1:40149 cDNt/on</n.prototype.schedule@http://localhost:8080/main.31c90e2b90310b432853.bundle.js:1:1262114 YRqN/r</e.prototype.scheduleMessage@http://localhost:8080/main.31c90e2b90310b432853.bundle.js:1:1191447 YRqN/r</e.prototype._next@http://localhost:8080/main.31c90e2b90310b432853.bundle.js:1:1191552 E9/g/a</e.prototype.next@http://localhost:8080/main.31c90e2b90310b432853.bundle.js:1:337931 PAZ8/o</n.prototype.observe@http://localhost:8080/main.31c90e2b90310b432853.bundle.js:1:646762 Bu8b/s</e.dispatch@http://localhost:8080/main.31c90e2b90310b432853.bundle.js:1:308187 GTlS/u</e.prototype._execute@http://localhost:8080/main.31c90e2b90310b432853.bundle.js:1:391880 GTlS/u</e.prototype.execute@http://localhost:8080/main.31c90e2b90310b432853.bundle.js:1:391696 wclm/i</e.prototype.flush@http://localhost:8080/main.31c90e2b90310b432853.bundle.js:1:7661648 eFQL/</</</u</t.prototype.invokeTask@http://localhost:8080/polyfills.75d6e1366e9ec579513e.bundle.js:1:45670 onInvokeTask@http://localhost:8080/main.31c90e2b90310b432853.bundle.js:1:508447 eFQL/</</</u</t.prototype.invokeTask@http://localhost:8080/polyfills.75d6e1366e9ec579513e.bundle.js:1:45583 eFQL/</</</o</e.prototype.runTask@http://localhost:8080/polyfills.75d6e1366e9ec579513e.bundle.js:1:40840 eFQL/</</</c</e.invokeTask@http://localhost:8080/polyfills.75d6e1366e9ec579513e.bundle.js:1:46784 e/this.invoke<@http://localhost:8080/polyfills.75d6e1366e9ec579513e.bundle.js:1:46666 c/n.args[0]@http://localhost:8080/polyfills.75d6e1366e9ec579513e.bundle.js:1:62984

filipesilva commented 6 years ago

I tried running a CLI app created with the latest CLI version on IE 11 and could get it to run.

These are the important things you should do:

To use a different server to serve the contents of dist/, you can install http-server:

Although this is somewhat bothersome, it's not that common that developers use IE11 to debug their apps so we think the reduced rebuild time on ng serve is worth it.

angular-automatic-lock-bot[bot] commented 5 years ago

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.