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

[Bug] - TypeError: Cannot read property 'apply' of undefined

Open johnpapa opened this issue 9 years ago • 9 comments

OS

Mac OSX Sierra 10.12.4

Versions

@angular/cli: 1.0.1 node: 6.9.1 os: darwin x64 @angular/common: 4.0.3 @angular/compiler: 4.0.3 @angular/core: 4.0.3 @angular/forms: 4.0.3 @angular/http: 4.0.3 @angular/platform-browser: 4.0.3 @angular/platform-browser-dynamic: 4.0.3 @angular/router: 4.0.3 @angular/cli: 1.0.1 @angular/compiler-cli: 4.0.3

Repro steps.

npm i -g @angular/cli
ng new foo
ng s -o

The app renders, but check the developer tools console and you will see ...

image

I am using Chrome

johnpapa avatar Apr 25 '17 13:04 johnpapa

It seems to be a zone.js problem. Using 0.8.7 instead of 0.8.8 works.

Duplicate of #6036 and #6047

hccampos avatar Apr 25 '17 13:04 hccampos

Just tested by pinning to zones 0.8.7 and it works.

johnpapa avatar Apr 25 '17 13:04 johnpapa

Supposedly fixed in: https://github.com/angular/zone.js/pull/747

intellix avatar Apr 25 '17 13:04 intellix

Hi @johnpapa this is a dupe of https://github.com/angular/angular-cli/issues/6036

iainplimmer avatar Apr 25 '17 14:04 iainplimmer

yep. i see that above

johnpapa avatar Apr 25 '17 14:04 johnpapa

0.8.9 released with a fix :) https://github.com/angular/zone.js/blob/master/CHANGELOG.md#089-2017-04-25

intellix avatar Apr 25 '17 17:04 intellix

@johnpapa Working as expected no errors. 😄

sumitarora avatar Apr 25 '17 18:04 sumitarora

confirmed fixed with zones 0.8.9.

thanks!

johnpapa avatar Apr 26 '17 02:04 johnpapa

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.