升级后:Angular "5.2.0" -> "6.0.2" and rxjs": "^5.2.0", -> "rxjs": "^6.0" and "rxjs-compat": "^6.2.0" ,
我在浏览器上发现了这个错误:
TypeError: this._subscribe is not a function
at PromiseObservable.Observable.subscribe (Observable.js:161)
at eval (subscribeTo.js:21)
然后我安装了:npm i -g rxjs-tslint 并运行rxjs-5-to-6-migrate -p path-to-tsconfig.ts 所有路径都已更新,但浏览器上仍然出现相同的错误。