Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angular/29.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
升级AngularJS应用程序后,包括Angular-marcoTask';RequestAnimationFrame';例外_Angularjs_Angular_Zonejs_Angular Upgrade - Fatal编程技术网

升级AngularJS应用程序后,包括Angular-marcoTask';RequestAnimationFrame';例外

升级AngularJS应用程序后,包括Angular-marcoTask';RequestAnimationFrame';例外,angularjs,angular,zonejs,angular-upgrade,Angularjs,Angular,Zonejs,Angular Upgrade,我们已经将一个大型AngularJS应用程序升级到AngularJS。所谓升级,我指的是引导Angular应用程序,然后引导AngularJS Chrome上的一切似乎都很好,但在使用FireFox时,我们经常会遇到以下例外情况: macroTask 'requestAnimationFrame': can not transition to 'running', expecting state 'scheduled', was 'notScheduled'. 这是完整的堆栈跟踪: 11:21

我们已经将一个大型AngularJS应用程序升级到AngularJS。所谓升级,我指的是引导Angular应用程序,然后引导AngularJS

Chrome上的一切似乎都很好,但在使用FireFox时,我们经常会遇到以下例外情况:

macroTask 'requestAnimationFrame': can not transition to 'running', expecting state 'scheduled', was 'notScheduled'.
这是完整的堆栈跟踪:

11:21:30.063 (showError): unhandled-exception-message Error: macroTask 'requestAnimationFrame': can not transition to 'running', expecting state 'scheduled', was 'notScheduled'.
Stack trace:
Error: macroTask 'requestAnimationFrame': can not transition to 'running', expecting state 'scheduled', was 'notScheduled'.
    at _transitionTo (zone.js:533)
    at Error (zone.js:182)
    at invokeTask (zone.js:499)
    at invoke (zone.js:488)
    at timer (zone.js:2040) 1 vendor.dll.js:41649:16
                consoleLog/< http://localhost:9090/ui/generated/webpack/vendor.dll.js:41649:16
                LoggerInstance.prototype.invokeLogger http://localhost:9090/ui/generated/webpack/common.js:141191:9
                LoggerInstance.prototype.error http://localhost:9090/ui/generated/webpack/common.js:141156:9
                showError/< http://localhost:9090/ui/generated/webpack/common.js:138649:17
                processQueue http://localhost:9090/ui/generated/webpack/vendor.dll.js:44000:37
                scheduleProcessQueue/< http://localhost:9090/ui/generated/webpack/vendor.dll.js:44044:27
                $digest http://localhost:9090/ui/generated/webpack/vendor.dll.js:45182:15
                UpgradeModule.prototype.bootstrap/initModule</</subscription< http://localhost:9090/ui/generated/webpack/app.js:5385:101
                EventEmitter.prototype.subscribe/schedulerFn< http://localhost:9090/ui/generated/webpack/common.js:5329:36
                SafeSubscriber.prototype.__tryOrUnsub http://localhost:9090/ui/generated/webpack/common.js:20411:13
                SafeSubscriber.prototype.next http://localhost:9090/ui/generated/webpack/common.js:20358:17
                Subscriber.prototype._next http://localhost:9090/ui/generated/webpack/common.js:20298:9
                Subscriber.prototype.next http://localhost:9090/ui/generated/webpack/common.js:20262:13
                Subject.prototype.next http://localhost:9090/ui/generated/webpack/common.js:26393:17
                EventEmitter.prototype.emit http://localhost:9090/ui/generated/webpack/common.js:5303:54
                checkStable http://localhost:9090/ui/generated/webpack/common.js:5537:13
                onLeave http://localhost:9090/ui/generated/webpack/common.js:5616:5
                onInvokeTask http://localhost:9090/ui/generated/webpack/common.js:5566:17
                vendor</</</ZoneDelegate.prototype.invokeTask http://localhost:9090/ui/generated/webpack/vendor.dll.js:169226:17
                vendor</</</Zone.prototype.runTask http://localhost:9090/ui/generated/webpack/vendor.dll.js:168994:28
                vendor</</</ZoneTask.invokeTask http://localhost:9090/ui/generated/webpack/vendor.dll.js:169301:24
                ZoneTask/this.invoke http://localhost:9090/ui/generated/webpack/vendor.dll.js:169290:28
                scheduleTask/target[XHR_LISTENER] http://localhost:9090/ui/generated/webpack/vendor.dll.js:171726:25
11:21:30.063(淋浴错误):未处理的异常消息错误:宏任务'requestAnimationFrame':无法转换为'running',预期状态为'scheduled',实际状态为'notScheduled'。
堆栈跟踪:
错误:宏任务“requestAnimationFrame”:无法转换为“正在运行”,预期状态为“已计划”,但为“未计划”。
at_过渡区(zone.js:533)
错误(zone.js:182)
在invokeTask(zone.js:499)
在调用时(zone.js:488)
在计时器(zone.js:2040)1 vendor.dll.js:41649:16处
consoleLog/UpgradeModule.prototype.bootstrap/initmodule目前我找到的唯一解决方案是使用降级模块而不是升级模块。目前我找到的唯一解决方案是使用降级模块而不是升级模块。