Error: Cannot find module "rxjs/operators" in Ionic Angular - javascript

Im trying to run my Ionic project. It was working fine until some days ago, now I just can't run it, whatever I do. this error shows up! I tried removing Rxjs from package.json and node_modules, also commented out all the place I used Rxjs, still this error shows up. Tried in Ubuntu 16.04 with Node 8.9.0 and npm 4.5.0.
Also tried the same running in windows still shows the same error! How do I fix this?

try reinstalling rxjs of version 5.5.3 or newer
npm install #reactivex/rxjs#5.5.3
this issue seems to be fixed in version 5.5.3 https://github.com/ReactiveX/rxjs/issues/2971

Related

Having trouble with node version when running 'npm i'

I am doing a take-home assessment which requires me to 'npm i' a project into vscode and to code a solution. I have downloaded the repo successfully but I keep getting a very extensive error when I try to run 'npm i'.
The instructions say that I should be using Node.js version 14.x. I checked what version of node I have installed and I have node v16.13.1. I assume this should be fine? Or do I need to have the older version 14.x in order to install my dependencies succesfully?
I'm a bit new to coding so hopefully this question makes sense. Thank you!
Hey so from my experience, it can also cause errors if you have a version which is newer than the expected version.
To keep track of your node versions, which you have installed I can recommend:
https://github.com/nvm-sh/nvm
https://github.com/coreybutler/nvm-windows/releases
The first Solution works for linux,mac and wsl, the second is for windows only.

Why am I getting a "Cannot read property 'length' of undefined" error when I try to install React-Bootstrap using "npm i react-bootstrap"?

I'm following a full-stack MERN tutorial, and after using the "npx create-react-app" command to create the react application smoothly, everything is compiling & running properly, but as SOON AS I try to install the React-Bootstrap library using the regular "npm i react-bootstrap" in the command line of Visual Studio Code OR Windows CMD, I'm getting the "Cannot read property 'length' of undefined". Could somebody PLEASE explain how to get rid of that error so that I can install React-Bootstrap? I'm unable to proceed further, and I would really appreciate if someone could help me out!
So one of the users in the comments suggested installing the "LTS" version of Node.js, instead of the one that's shown with "latest features" on their website. And indeed, installing the LTS version of Node.js fixed the problem! I don't understand though, how literally, an updated version of Node.js with "latest features" could throw errors/get stuck on installing libraries via npm. Regardless, this particular issue has now been resolved.
Updating Node using nvm install --lts solved it for me and I was able to install the package.

ElectronJS npm start / bash: electron-forge: command not found

My System:
Mac OSX 10.14.6
Electron: 10.1.5
electron-forge: ^6.0.0-beta.54
I've been working on an Electron side project. I started it using electron-forge, I had a small application functioning just fine, I then set it aside for a couple weeks. Coming back to it, I tried running npm start and it did nothing but return to a new terminal line. So I tried electron-forge start and it returned bash: electron-forge: command not found.
I tried deleting my node_modules folder and reinstalling, I tried creating a new electron-forge boilerplate, and neither made a difference. I tried installing electron-forge globally, but it errored out on the second step, and I found several stackoverflow articles saying I shouldn't have electron-forge installed globally. I haven't changed anything (that I know of) on a system level, but it seems to be a system issue, rather than a package issue, but I'm not knowledgable enough to do anything other than Google the errors and see what stacksoverflow articles are out there, but no articles have helped.
I'd love any and all help, Electron has ceased working on my system completely, and I have no idea how to troubleshoot it. Thanks in advance!
I ended up deleting and re-installing Node and that seems to have fixed it. Still not sure what caused the initial issue, but it's working again. For those interested, here's the resources I used:
https://stackabuse.com/how-to-uninstall-node-js-from-mac-osx/
https://pawelgrzybek.com/install-nodejs-installer-vs-homebrew-vs-nvm/
Update:
I kept having issues running npm start. What finally worked was to create a new boilerplate project using the CLI and copy the contents of the package-lock.json to the old project. That finally launched the app.
I know this is an old question but, I had the same issue and instead of uninstalling Node, I used rm -rf node_modules then I used npm cache clean --force. I reinstalled my dependencies and electron-forge worked again.
Use the command below
npm install electron

Expo start results in npm install

I've built an app, also published it already. Now I want to make a small change to the app, but after starting Expo I get an error:
"Error: React Native is not installed. Please run npm install in your project directory.
Couldn't start project. Please fix the errors and restart the project."
Starting Expo (expo start) worked in the past. But starting Expo keeps failing with this error, even after running 'npm install'.
I've also tried 'expo build:android', but that also doesn't work.
All these commands are failing, also with other Expo built apps. Also an app I worked on yesterday.
What can I do to fix this?
Thanks in advance!
[edit]
I am using Expo 2.6.8. (which was a just available update)
Try updating nodejs
https://nodejs.org/en/download/
worked for me

'React/UIView+React.h' file not found | AIRGMSMarker.h

Intro
Hi there! I'm working on my first react-native app. After months of work, I am finally ready to deploy to Test Flight. I built the project in expo. Runs great on the expo simulator. Next step, run in Xcode. I encountered a few errors but managed to find my way. Until, I hit this error, which, I just cannot seem to get around.
What I have done:
1)Ejected ExpoKit
2)Run npm install
3)Run pod install in my ios directory
The Error:
Now, I am trying to compile in debug and release configurations but the build fails :(. Here is the error I am receiving
Not sure what to do. I have searched all around and can't seem to find a working solution... Any ideas??
Versions
React Native - 0.54.2
React Native CLI - 2.0.1
I solved my issue with these steps
update pod
install pod
removed node_modules and npm install
Not sure this will help anyone but it fixed my problem.

Categories