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

标签 javascript angular rxjs systemjs rxjs6

我已将我的应用程序从 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/

相关文章:

javascript - 我如何将值从谷歌云函数(firebase)传递到前端?

regex - Angular 模式验证器未按预期工作

angular - 错误 : several @ngtools/webpack packages installed

angular - 如何取消/取消订阅 Angular 4+ 中所有待处理的 HTTP 请求

javascript - RXJS redux observable 执行多个 api 调用

php - FullCalendar JSON 事件源问题

javascript - 如何在 Javascript 中处理 ctrl+arrow?

javascript - 是否有水平滚动的无限内容滚动?

angular - agGrid 的自动行高属性不起作用

Angular 4 : Activate route with empty route param yields error: 'You provided ' null' where a stream was expected. ..'