gpt4 book ai didi

javascript - rxjs/scheduler/VirtualTimeScheduler.js 404 未找到

转载 作者:行者123 更新时间:2023-12-03 01:33:41 25 4
gpt4 key购买 nike

我已将我的应用程序从 Angular 5 升级到 6,如下 https://update.angular.io教程。该应用程序未加载并产生错误:

zone.js:1050 GET http://localhost:9000/node_modules/rxjs/scheduler/VirtualTimeScheduler.js 404 (Not Found)
zone.js:1050 GET http://localhost:9000/node_modules/rxjs/testing/TestScheduler.js 404 (Not Found)
zone.js:1050 GET http://localhost:9000/node_modules/rxjs/scheduler/AsyncScheduler.js 404 (Not Found)
zone.js:1050 GET http://localhost:9000/node_modules/rxjs/scheduler/AsyncAction.js 404 (Not Found)

package.json: https://pastebin.com/Qwhi63VR

systemjs.config.js:https://pastebin.com/3U7Qih1g

你知道这里可能出了什么问题以及如何修复它吗?

最佳答案

在 RxJS 6 中,您需要直接从 'rxjs' 导入 VirtualTimeScheduler:

import { VirtualTimeScheduler } from 'rxjs';

https://github.com/ReactiveX/rxjs/blob/master/docs_app/content/guide/v6/migration.md#import-paths

关于javascript - rxjs/scheduler/VirtualTimeScheduler.js 404 未找到,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51174548/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com