This problem might arise due to version mismatch. To solve your problem you need to do following changes in your package.json file.
Step 1 : Go to package.json
and modify "rxjs": "^6.0.0"
to "rxjs": "6.0.0"
Step 2 Run npm install
in your project.
There is no need to change the typescript version. (Mine: "typescript": "~2.7.2"
)
Edit: If you are using rxjs-compat
then you also need to do following in order to fixed the issue. change the rxjs-compat
version from "rxjs-compat": "^6.2.2"
to "rxjs-compat": "6.2.2"
Hope this will help!
I had the same error using angular 6 having [email protected] but i downgraded it to [email protected] it worked.
You need to do some changes in package.json
Go to package.json
and modify "rxjs": "^6.0.0"
to "rxjs": "6.0.0"
Then run npm update
in your project
Go to the project directory run this command
npm install [email protected] --save
If you are using rxjs-compat then you also need to do following in order to fixed the issue. change the rxjs-compat version from
"rxjs-compat": "^6.2.2"
to
"rxjs-compat": "6.2.2"
This works for me
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With