-
Notifications
You must be signed in to change notification settings - Fork 12k
Cannot find module 'rxjs/operators/map' when running any ng command #9190
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I got the same issue too |
me too |
yep, me too. Shouldn't the path be 'rxjs/operator/map' i.e. singular |
Me too. Not sure how can this happen after locking the version on package.json |
I tried installing new version of rxjs and it worked for me |
The Alpha fails, as does 5.5.6 I tried @5.5.5 and that resolves. Available versions: 6.0.0-alpha.1, 6.0.0-alpha.0, 5.5.6, 5.5.5, 5.5.4, 5.5.3, 5.5.2, 5.5.1, 5.5.0, 5.5.0-beta.7, 5.5.0-beta.5, 5.5.0-beta.4, 5.5.0-beta.3, 5.5.0-beta.2, 5.5.0-beta.1, 5.5.0-beta.0, 5.4.3, 5.4.2, 5.4.1, 5.4.0, 5.3.3, 5.3.1, 5.3.0, 5.2.1-smooth, 5.2.0, 5.1.1, 5.1.0, 5.0.3, 5.0.2, 5.0.1, 5.0.0, 5.0.0-rc.5, 5.0.0-rc.4, 5.0.0-rc.3, 5.0.0-rc.2, 5.0.0-rc.1, 5.0.0-beta.12, 5.0.0-beta.11, 5.0.0-beta.10, 5.0.0-beta.9, 5.0.0-beta.8, 5.0.0-beta.7, 5.0.0-beta.6, 5.0.0-beta.5, 5.0.0-beta.4, 5.0.0-beta.3, 5.0.0-beta.2, 5.0.0-beta.1, 5.0.0-beta.0, 5.0.0-alpha.14, 5.0.0-alpha.13, 5.0.0-alpha.12, 5.0.0-alpha.11, 5.0.0-alpha.10 |
Updating rxjs package from 5.4.3 to 5.5.6 fixed the issue. |
Related bug angular/devkit#380 |
Same for me too, the project.json that I had contained: |
Remove node_module folder and run following command: npm install |
I am closing this issue as it will be tracked via angular/devkit#380. |
As of now to get rid of this issue, please run npm install rxjs@5.5.6 globally on system after npm install, if you dont need to change code |
npm install --save rxjs@5.6.0 |
npm install rxjs@6 rxjs-compat@6 --save |
@lovesinghchahal
And after run install above, server build success :D |
Thanks!! just before install rxjs and rxjs-compat packages (current version 6.2.0) after server buil success |
My issue resolved , after running below command, Thanks for saving my time. |
I had the same problem after install primeicons (npm install primeicons), I resolve it with re-installation rxjs and rxjs-compat, I come late, sorry |
npm install --save rxjs@5.6.0 will fix the issue.. It worked for me |
I used yarn to reinstall. It worked. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Getting the following error when trying to run any ng commands.
`ng --version
module.js:471
throw err;
^
Error: Cannot find module 'rxjs/operators/map'
at Function.Module._resolveFilename (module.js:469:15)
at Function.Module._load (module.js:417:25)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object. (C:\work\fs\test\test-fspg\node_modules@angular-devkit\core\src\json\schema\registry.js:15:15)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)`
My project was using cli version 1.4.5, Started happening after a fresh npm install Tried with latest 1.6.4 and got the same error. It was working fine last week.
The text was updated successfully, but these errors were encountered: