Windows 7
v6.9.2
Yes, Auth0 implementation
Hi,
I am new to angularjs 2. Any idea about this error?
@sprider can you please give some more information about the version you are using and the repro steps? For instance which steps you took to implement Auth0?
@sprider so there seems to be a bug in zone.js. Try fixing the version to 0.7.2 and see if the error message is more explicit
@deebloo thanks thats working for me.
I can confirm that I have the issue too on 1.0.0-beta.25, freshly installed app with ng new
.
Downgrading zone.js one minor version seems to fix it: npm install --save [email protected]
npm install --save zone.[email protected] fixed the problem for me
Thank you guys
I can also confirm that [email protected]
fixed the problem
macOS Sierra 10.12.2
angular-cli: 1.0.0-beta.24
node: 6.9.1
os: darwin x64
@angular/common: 2.4.3
@angular/compiler: 2.4.3
@angular/core: 2.4.3
@angular/forms: 2.4.3
@angular/http: 2.4.3
@angular/platform-browser: 2.4.3
@angular/platform-browser-dynamic: 2.4.3
@angular/router: 3.4.3
@angular/compiler-cli: 2.4.3
TypeError: Cannot set property 'stack' of undefined
at SyntaxError.set [as stack] (webpack:///~/@angular/compiler/src/facade/errors.js:64:31 <- src/test.ts:55573:61)
at assignAll (webpack:///~/zone.js/dist/zone.js:704:0 <- src/test.ts:71100:29)
at SyntaxError.ZoneAwareError (webpack:///~/zone.js/dist/zone.js:775:0 <- src/test.ts:71171:16)
at SyntaxError.BaseError [as constructor] (webpack:///~/@angular/compiler/src/facade/errors.js:26:0 <- src/test.ts:55535:16)
at new SyntaxError (webpack:///~/@angular/compiler/src/util.js:151:0 <- src/test.ts:5508:16)
at DirectiveNormalizer.normalizeLoadedTemplate (webpack:///~/@angular/compiler/src/directive_normalizer.js:127:0 <- src/test.ts:13379:19)
at DirectiveNormalizer.normalizeTemplateSync (webpack:///~/@angular/compiler/src/directive_normalizer.js:104:0 <- src/test.ts:13356:21)
at DirectiveNormalizer.normalizeTemplate (webpack:///~/@angular/compiler/src/directive_normalizer.js:81:0 <- src/test.ts:13333:43)
at CompileMetadataResolver._loadDirectiveMetadata (webpack:///~/@angular/compiler/src/metadata_resolver.js:207:29 <- src/test.ts:14575:75)
at webpack:///~/@angular/compiler/src/metadata_resolver.js:383:33 <- src/test.ts:14751:54
at Array.forEach (native)
at CompileMetadataResolver.loadNgModuleDirectiveAndPipeMetadata (webpack:///~/@angular/compiler/src/metadata_resolver.js:382:0 <- src/test.ts:14750:41)
at webpack:///~/@angular/compiler/src/jit/compiler.js:170:0 <- src/test.ts:39012:58
at Array.forEach (native)
at JitCompiler._loadModules (webpack:///~/@angular/compiler/src/jit/compiler.js:169:0 <- src/test.ts:39011:43)
TypeError: Cannot read property 'detectChanges' of undefined
at Object.(webpack:///src/app/banner/banner-inline.component.spec.ts:28:12 <- src/test.ts:72233:16)
at ZoneDelegate.invoke (webpack:///~/zone.js/dist/zone.js:242:0 <- src/test.ts:70638:26)
at ProxyZoneSpec.onInvoke (webpack:///~/zone.js/dist/proxy.js:79:0 <- src/test.ts:51715:39)
at ZoneDelegate.invoke (webpack:///~/zone.js/dist/zone.js:241:0 <- src/test.ts:70637:32)
at Zone.run (webpack:///~/zone.js/dist/zone.js:113:0 <- src/test.ts:70509:43)
at Object.(webpack:///~/zone.js/dist/jasmine-patch.js:102:0 <- src/test.ts:51430:34)
at ZoneQueueRunner.jasmine.QueueRunner.ZoneQueueRunner.execute (webpack:///~/zone.js/dist/jasmine-patch.js:132:0 <- src/test.ts:51460:42)
Reverting to zone.[email protected] fixed this problem (^0.7.4)
Zone.js was referred earlier in package.json as ~0.7.4.
zone.[email protected] really prevents Angular to display error message. Downgrading zone.js to version 0.7.4 helps.
Downgrading advice to 0.7.2 helped me. Thanks!
same error 眉
Downgrading to 0.7.4 helped - 0.7.5 obscured it
Same error.
Downgrading to 0.7.2 caused :
'Uncaught TypeError: Cannot set property stack of [object Object] which has only a getter' with Angular #427
zone.js issue
My packages :
I got the same error earlier today.
It was generated because I failed to import a module (ReactiveFormsModule) in my app.module file.
Ensure you import every dependency in your app.module.
Cheers!
The issue has been fixed in zone.js version 0.7.6.
npm install --save [email protected]
should fix this, and new apps created with ng new
or ng init
are now work out of the box again :)
Upgrading to ^0.7.6 worked !! Thank you!
npm install --save zone.[email protected] fixed the problem for me
Thank you guys!
I feel like this needs to be reopened. Certain errors are still obscured. I am getting an error that reads when using ^0.7.6
Error: Uncaught (in promise): Error: DI Error
when using zone.[email protected] is reads
Error: Uncaught (in promise): Error: No provider for RouterExtendedService!
which of course is much more helpful
@Germcguire87 I actually think that is an issue that should be opened here https://github.com/angular/zone.js as angular-cli can not change that behavior.
switching to zone.js 0.7.4 solved my problem
thank you @sprider
You guys rock. This worked for me
reverting to 0.7.4 seems to have fixed this issue for me too
Please note that the most recent version of zone.js is 0.7.6 and that one fixes the issue too.
@beeman ah yes thanks, 0.7.6 works for me too
For me 0.7.7 worked as well. But I had a problem with the webpack generated files, so I had to delete them and regenerate them. Just regenerating did not solve the problem. Deletion did.
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
npm install --save zone.[email protected] fixed the problem for me
Thank you guys