question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

raven-js doesn't work with a standard angular-cli app

See original GitHub issue

As soon as raven-js is called the angular app no longer works but only start some kind of infinite loop:

    at http://localhost:4200/polyfills.bundle.js:5303:31
    at XMLHttpRequest.proto.(anonymous function) (http://localhost:4200/polyfills.bundle.js:3819:24)
    at XMLHttpRequest.open (http://localhost:4200/vendor.bundle.js:4636:37)
    at Raven._makeRequest (http://localhost:4200/vendor.bundle.js:5317:17)
    at Raven._sendProcessedPayload (http://localhost:4200/vendor.bundle.js:5241:56)
    at Raven._send (http://localhost:4200/vendor.bundle.js:5183:22)
    at Raven._processException (http://localhost:4200/vendor.bundle.js:4957:14)
    at Raven._handleStackInfo (http://localhost:4200/vendor.bundle.js:4863:14)
    at Raven.captureException (http://localhost:4200/vendor.bundle.js:4001:18)
    at XMLHttpRequest.wrapped [as __zone_symbol__ON_PROPERTYreadystatechange] (http://localhost:4200/vendor.bundle.js:3937:22)
    at XMLHttpRequest.wrapFn (http://localhost:4200/polyfills.bundle.js:3620:39)
    at XMLHttpRequest.wrapped [as __zone_symbol__ON_PROPERTYreadystatechange] (http://localhost:4200/vendor.bundle.js:3934:29)
    at XMLHttpRequest.wrapFn (http://localhost:4200/polyfills.bundle.js:3620:39)
    at XMLHttpRequest.wrapped [as __zone_symbol__ON_PROPERTYreadystatechange] (http://localhost:4200/vendor.bundle.js:3934:29)
    at XMLHttpRequest.wrapFn (http://localhost:4200/polyfills.bundle.js:3620:39)
    at XMLHttpRequest.wrapped [as __zone_symbol__ON_PROPERTYreadystatechange] (http://localhost:4200/vendor.bundle.js:3934:29)
    at XMLHttpRequest.wrapFn (http://localhost:4200/polyfills.bundle.js:3620:39)
    at XMLHttpRequest.wrapped [as __zone_symbol__ON_PROPERTYreadystatechange] (http://localhost:4200/vendor.bundle.js:3934:29)
    at XMLHttpRequest.wrapFn (http://localhost:4200/polyfills.bundle.js:3620:39)
    at XMLHttpRequest.wrapped [as __zone_symbol__ON_PROPERTYreadystatechange] (http://localhost:4200/vendor.bundle.js:3934:29)
    at XMLHttpRequest.wrapFn (http://localhost:4200/polyfills.bundle.js:3620:39)
    at XMLHttpRequest.wrapped [as __zone_symbol__ON_PROPERTYreadystatechange] (http://localhost:4200/vendor.bundle.js:3934:29)
    at XMLHttpRequest.wrapFn (http://localhost:4200/polyfills.bundle.js:3620:39)
    at XMLHttpRequest.wrapped [as __zone_symbol__ON_PROPERTYreadystatechange] (http://localhost:4200/vendor.bundle.js:3934:29)
    at XMLHttpRequest.wrapFn (http://localhost:4200/polyfills.bundle.js:3620:39)
    at XMLHttpRequest.wrapped [as __zone_symbol__ON_PROPERTYreadystatechange] (http://localhost:4200/vendor.bundle.js:3934:29)
    at XMLHttpRequest.wrapFn (http://localhost:4200/polyfills.bundle.js:3620:39)
    at XMLHttpRequest.wrapped [as __zone_symbol__ON_PROPERTYreadystatechange] (http://localhost:4200/vendor.bundle.js:3934:29)
    at XMLHttpRequest.wrapFn (http://localhost:4200/polyfills.bundle.js:3620:39)
    at XMLHttpRequest.wrapped [as __zone_symbol__ON_PROPERTYreadystatechange] (http://localhost:4200/vendor.bundle.js:3934:29)
    at XMLHttpRequest.wrapFn (http://localhost:4200/polyfills.bundle.js:3620:39)
    at XMLHttpRequest.wrapped [as __zone_symbol__ON_PROPERTYreadystatechange] (http://localhost:4200/vendor.bundle.js:3934:29)
    at XMLHttpRequest.wrapFn (http://localhost:4200/polyfills.bundle.js:3620:39)
    at XMLHttpRequest.wrapped [as __zone_symbol__ON_PROPERTYreadystatechange] (http://localhost:4200/vendor.bundle.js:3934:29)
    at XMLHttpRequest.wrapFn (http://localhost:4200/polyfills.bundle.js:3620:39)
    at XMLHttpRequest.wrapped [as __zone_symbol__ON_PROPERTYreadystatechange] (http://localhost:4200/vendor.bundle.js:3934:29)
    at XMLHttpRequest.wrapFn (http://localhost:4200/polyfills.bundle.js:3620:39)
    at XMLHttpRequest.wrapped [as __zone_symbol__ON_PROPERTYreadystatechange] (http://localhost:4200/vendor.bundle.js:3934:29)
    at XMLHttpRequest.wrapFn (http://localhost:4200/polyfills.bundle.js:3620:39)
    at XMLHttpRequest.wrapped [as __zone_symbol__ON_PROPERTYreadystatechange] (http://localhost:4200/vendor.bundle.js:3934:29)
    at XMLHttpRequest.wrapFn (http://localhost:4200/polyfills.bundle.js:3620:39)
    at XMLHttpRequest.wrapped [as __zone_symbol__ON_PROPERTYreadystatechange] (http://localhost:4200/vendor.bundle.js:3934:29)
    at XMLHttpRequest.wrapFn (http://localhost:4200/polyfills.bundle.js:3620:39)
    at XMLHttpRequest.wrapped [as __zone_symbol__ON_PROPERTYreadystatechange] (http://localhost:4200/vendor.bundle.js:3934:29)
    at XMLHttpRequest.wrapFn (http://localhost:4200/polyfills.bundle.js:3620:39)
    at XMLHttpRequest.wrapped [as __zone_symbol__ON_PROPERTYreadystatechange] (http://localhost:4200/vendor.bundle.js:3934:29)
    at XMLHttpRequest.wrapFn (http://localhost:4200/polyfills.bundle.js:3620:39)
    at XMLHttpRequest.wrapped [as __zone_symbol__ON_PROPERTYreadystatechange] (http://localhost:4200/vendor.bundle.js:3934:29)
    at XMLHttpRequest.wrapFn (http://localhost:4200/polyfills.bundle.js:3620:39)
    at XMLHttpRequest.wrapped [as __zone_symbol__ON_PROPERTYreadystatechange] (http://localhost:4200/vendor.bundle.js:3934:29)

Start a new angular-cli app using ng new, add the npm raven-js dependency, import and call it from the app.module.ts, This is a minimal repository containing only an empty angular-cli app, the raven-js dep and just the initializing code (Raven.config().install() is enough to trigger the problem): https://github.com/esistgut/raventest

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:7
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

19reactions
colthreepvcommented, Aug 24, 2017

we tracked back the cause to zone.js@0.8.17, with the previous minor release, 0.8.16 everything still works

2reactions
mxman06commented, Oct 11, 2017

@kblestarge

Are you sure ? I just upgraded zone.js to 0.8.18 and still have the loop error 😦

Read more comments on GitHub >

github_iconTop Results From Across the Web

raven-js doesn't work with a standard angular-cli app #1016
As soon as raven-js is called the angular app no longer works but only start some kind of infinite loop: at ...
Read more >
Angular: Cannot Get / - Stack Overflow
The steps I took were: Open up the project; npm install; ng serve. The project compiles the right way. (I have an own...
Read more >
Nx is Modern Angular
In contrast to a standard Angular CLI setup, folks using Nx split their applications into many packages, each of which can have its...
Read more >
Debug Angular apps in production without revealing source ...
But we are looking at JavaScript that is hard to read and impedes debugging. But there's a solution: source maps! Do you prefer...
Read more >
Setting up the local environment and workspace - Angular
This guide explains how to set up your environment for Angular development using the Angular CLI tool. It includes information about prerequisites, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found