بمجرد تسمية raven-js ، لم يعد التطبيق الزاوي يعمل ولكن فقط ابدأ نوعًا من الحلقة اللانهائية:
Uncaught RangeError: Maximum call stack size exceeded
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)
ابدأ تطبيق angular-cli الجديد باستخدام ng new ، وأضف تبعية npm raven-js ، واستوردها واستدعها من app.module.ts ،
هذا مستودع صغير يحتوي فقط على تطبيق angular-cli فارغ ، و raven-js dep وكود التهيئة فقط (Raven.config (). install () كافٍ لإثارة المشكلة): https://github.com/ esistgut / raventest
قمنا بتتبع السبب إلى [email protected]
، مع الإصدار الثانوي السابق ، 0.8.16
كل شيء لا يزال يعمل
أنا أواجه هذا أيضًا.
نفس المشكلة هنا مع angluar-cli 1.4.0 و zone.js 0.8.16.
تم إلقاء أخطاء وحدة التحكم التالية:
Firefox: خطأ داخلي: الكثير من العودية
المتصفحات الأخرى: RangeError: تجاوز الحد الأقصى لحجم مكدس الاستدعاءات
هل من المحتمل أن يتم حل هذه المشكلة في نسخة مستقبلية من Raven؟ أفضل ألا أضطر إلى قفل الإصدار الخاص بي من zone.js
لهذا النوع من مشكلات التوافق.
+1
LukasKlementrtmmkoczorowski، هذه المسألة ليست على جانب تنفيذ Raven.js، ولكن بدلا من ذلك على Zone.js. لحسن الحظ ، قاموا بالفعل بتصحيحه منذ 5 أيام ، وتعمل الأمور بشكل صحيح الآن.
يجب فقط إصداره كنسخة مصححة إلى npm. يرجى الاطلاع على التزامين حديثين من 6 سبتمبر - https://github.com/angular/zone.js/commits/master
يمكنك اختباره بنفسك محليًا عن طريق تغيير zone.js
في package.json
إلى [email protected]:angular/zone.js.git#d4e5ae8f6e72f0b4ef8e816e369530b72e582ba7
، على سبيل المثال.
"zone.js": "[email protected]:angular/zone.js.git#d4e5ae8f6e72f0b4ef8e816e369530b72e582ba7"
لكي نكون أكثر تحديدًا (حيث لا يزال هناك الكثير من التقارير حول هذه المشكلة) ، هذا هو الالتزام الذي سيصلحها - https://github.com/angular/zone.js/commit/d4e5ae8f6e72f0b4ef8e816e369530b72e582ba7
ركوب على!
لقد نجحت ترقية zone.js
إلى 0.8.18
مع تطبيق Angular v.4 + الخاص بي.
تضمين التغريدة
هل أنت متأكد ؟ لقد قمت للتو بترقية zone.js إلى 0.8.18 ولا يزال لدي خطأ الحلقة :(
@ mxman06 إنه يعمل معي مع zone.js 0.8.18 - ربما هناك متهم آخر؟
التعليق الأكثر فائدة
قمنا بتتبع السبب إلى
[email protected]
، مع الإصدار الثانوي السابق ،0.8.16
كل شيء لا يزال يعمل