Ionic Error: Cannot read property ‘replace’ of undefined – Fixed

I’ve been getting this error lately on all my products that we update regularly. I found that you need to:

[NOTE] You might have to run with sudo on the global npm.

npm uninstall -g ios-sim

Then run this from within the root of your project.

cd platforms/ios/cordova && npm install ios-sim

Then you can run the normal ionic cordova run/emulate.

Notable Replies

Continue the discussion