rxjs-compat NOT automatically installed
See original GitHub issuePer the paragraph on the announcement blog page:
For example, the command ng update @angular/core will update all of the Angular framework packages as well as RxJS and TypeScript, and will run any schematics available on these packages to keep you up to date. As part of this one command, we’ll automatically install rxjs-compat into your application to make the adoption of RxJS v6 smoother.
However, after running the ng upgrade commands, rxjs-compat was NOT automatically installed. When I ran my app, there were several errors related to rxjs
node_modules/rxjs/Observable.d.ts(1,15): error TS2307: Cannot find module 'rxjs-compat/Observable'.
src/app/students/students.component.ts(2,10): error TS2305: Module '"/Users/john/Dev/DotNet/TimeTracker/node_modules/rxjs/Observable"' has no exported member 'Observable'.
src/app/students/students.service.ts(3,10): error TS2305: Module '"/Users/john/Dev/DotNet/TimeTracker/node_modules/rxjs/Observable"' has no exported member 'Observable'.
Versions
Angular CLI: 6.0.0
Node: 10.0.0
OS: darwin x64
Angular: 6.0.0
... animations, cli, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router
Package Version
-----------------------------------------------------------
@angular-devkit/architect 0.6.0
@angular-devkit/build-angular 0.6.0
@angular-devkit/build-optimizer 0.6.0
@angular-devkit/core 0.6.0
@angular-devkit/schematics 0.6.0
@ngtools/webpack 6.0.0
@schematics/angular 0.6.0
@schematics/update 0.6.0
rxjs 6.1.0
typescript 2.7.2
webpack 4.6.0
Repro steps
- Update an existing app, per directions on update.angular.io
Observed behavior
rxjs-compat was not added to package.json automatically
Desired behavior
Per the docs, rxjs-compat should have been installed.
Mention any other details that might be useful (optional)
Issue Analytics
- State:
- Created 5 years ago
- Reactions:21
- Comments:16 (2 by maintainers)
Top Results From Across the Web
Cannot find module 'rxjs-compat/Observable' - Stack Overflow
I am currently upgrading angular 4 to angular 6 code. I have installed "rxjs": "^6.3.
Read more >rxjs-compat - npm
Start using rxjs-compat in your project by running `npm i rxjs-compat`. There are 1060 other projects in the npm registry using rxjs-compat.
Read more >Cannot find module 'rxjs-compat/Observable' error | bobbyhadz
To solve the error "Cannot find module 'rxjs-compat/Observable'", make sure to install the package by opening your terminal in your project's root directory ......
Read more >RxJS 6.x to 7.x Detailed Change List
This document contains a detailed list of changes between RxJS 6.x and RxJS 7.x, presented in the order they can be found when...
Read more >RxJS 6 - What Changed? - Academind
This command will install a package that ensures backward-compatibility of RxJS. Even though the rxjs package itself would not work with ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
same issue.
This package allowed me to keep working:
npm install rxjs-compat@6.0.0-tactical-rc.1
npm i rxjs-compat
Add these on o your root folder