Recently, I've been using explo-cli to work on a react native project. Everything was running smoothly until today when I encountered an error stating that it couldn't find module './iter-step'. Before this, there was also an issue with 'babel-runtime' not being found. To fix these problems, I simply ran 'npm install --save [missing package name]' and it seemed to resolve the issues temporarily. However, now I'm facing a new error message: "metro bundler has encountered an internal error, please check your terminal error output for more details."
[15:12:06] undefined
[15:12:06] Failed building JavaScript bundle.
Building JavaScript bundle [===============================================] 99
I never intentionally imported 'babel-runtime' or 'core-js', so it's puzzling to me why my project is complaining about their absence. Could it be possible that a vscode extension inserted them into my code without my knowledge? Has anyone else experienced this issue before?
Here is a snippet from my updated package.json file:
{
"name": "empty-project-template",
"main": "node_modules/expo/AppEntry.js",
"private": true,
"scripts": {
"start": "expo start",
"android": "expo start --android",
"ios": "expo start --ios",
"eject": "expo eject"
},
"dependencies": {
"babel-runtime": "^6.26.0",
"core-js": "^2.6.3",
"expo": "^30.0.1",
"firebase": "^5.8.0",
"moment": "^2.23.0",
"number-is-nan": "^1.0.1",
"react": "16.3.1",
"react-native": "https://github.com/expo/react-native/archive/sdk-30.0.0.tar.gz",
"react-native-calendars": "^1.21.0",
"react-native-router-flux": "^4.0.6",
"react-navigation": "^3.0.9",
"react-redux": "^6.0.0",
"redux": "^4.0.1",
"redux-thunk": "^2.3.0",
"styled-components": "^4.1.3",
"styled-icons": "^6.4.0"
}
}