Error: Cannot find module '@babel/plugin-transform-flow-strip-types'
See original GitHub issue- [0.57.0 ] Review the documentation: https://facebook.github.io/react-native
- Search for existing issues: https://github.com/facebook/react-native/issues
- Use the latest React Native release: https://github.com/facebook/react-native/releases
Environment
Run react-native info
in your terminal and paste its contents here.
Description
Even though i successfully installed all @babel packages yet it is giving me the below error.
module.js:538 throw err; ^
Error: Cannot find module ‘@babel/plugin-transform-flow-strip-types’ at Function.Module._resolveFilename (module.js:536:15) at Function.Module._load (module.js:466:25) at Module.require (module.js:579:17) at require (internal/module.js:11:18) at Object.<anonymous> (C:\Users\vishalg\Desktop\Vishal1\projects\panacea-wallet\node_modules\metro-babel-register\src\babel-register.js:18:2) at Module._compile (module.js:635:30) at Object.Module._extensions…js (module.js:646:10) at Module.load (module.js:554:32) at tryModuleLoad (module.js:497:12) at Function.Module._load (module.js:489:3)
It started happening from yesterday.
My package.json goes like this…
{
“dependencies”: { “@babel/plugin-transform-flow-strip-types”: “^7.0.0”, “@babel/plugin-transform-runtime”: “^7.1.0”, “babel-plugin-transform-remove-console”: “^6.8.5”, “bugsnag-react-native”: “^2.10.2”, “lodash”: “^4.17.10”, “moment”: “^2.20.1”, “native-base”: “2.3.10”, “openpgp”: “^2.6.2”, “prop-types”: “^15.6.1”, “radio-button-react-native”: “^1.1.6”, “react”: “16.5.0”, “react-native”: “0.57.0”, “react-native-camera”: “^1.0.1”, “react-native-confirmation-code-input”: “^1.0.4”, “react-native-country-picker-modal”: “^0.5.1”, “react-native-device-info”: “^0.13.0”, “react-native-elements”: “^0.19.0”, “react-native-image-picker”: “^0.26.7”, “react-native-material-dropdown”: “^0.7.2”, “react-native-modal”: “^5.0.0”, “react-native-modalbox”: “^1.4.2”, “react-native-openpgp”: “^1.0.4”, “react-native-phone-input”: “^0.2.1”, “react-native-qrcode”: “^0.2.6”, “react-native-qrcode-scanner”: “1.0.1”, “react-native-qrcode-svg”: “5.1.0”, “react-native-share”: “^1.0.26”, “react-native-svg”: “6.2.2”, “react-native-typography”: “^1.2.1”, “react-native-vector-icons”: “^4.5.0”, “react-navigation”: “1.0.0-beta.26”, “react-navigation-redux-helpers”: “^1.0.3”, “react-redux”: “^5.0.5”, “redux”: “^3.7.2”, “redux-logger”: “^3.0.6”, “redux-persist”: “^5.9.1”, “redux-thunk”: “^2.2.0”, “remote-redux-devtools”: “^0.5.12” }, “devDependencies”: { “@babel/cli”: “7.0.0”, “@babel/core”: “7.0.0”, “@babel/plugin-proposal-decorators”: “7.0.0”, “@babel/preset-flow”: “7.0.0”, “babel-core”: “7.0.0-bridge.0”, “babel-eslint”: “9.0.0-beta.2”, “babel-jest”: “23.6.0”, “babel-plugin-module-resolver”: “3.1.1”, “babel-plugin-transform-remove-console”: “6.9.4”, “enzyme”: “3.6.0”, “eslint”: “5.1.0”, “eslint-config-airbnb”: “17.1.0”, “eslint-import-resolver-babel-module”: “5.0.0-beta.1”, “eslint-plugin-import”: “2.14.0”, “eslint-plugin-jsx-a11y”: “6.1.1”, “eslint-plugin-react”: “7.11.0”, “eslint-plugin-react-native”: “3.3.0”, “flow-bin”: “0.78.0”, “jest”: “23.6.0”, “jest-util”: “23.4.0”, “metro-react-native-babel-preset”: “0.45.2”, “prettier-eslint”: “8.8.2”, “react-dom”: “16.5.0”, “react-test-renderer”: “16.5.0”, “redux-devtools-extension”: “2.13.5”, “redux-mock-store”: “1.5.3”, “remote-redux-devtools”: “0.5.13”, “@babel/runtime”: “^7.0.0”, “babel-plugin-transform-inline-environment-variables”: “^0.4.3”, “babel-preset-react-native”: “^4.0.0”, “babel-preset-react-native-stage-0”: “^1.0.1”, “jest-expo”: “23.0.0”, “react-devtools”: “^3.2.3” }, “jest”: { “preset”: “react-native” }, “engines”: { “node”: “^6.14.0 || ^8.10.0 || >=9.10.0” } }
For any solutions please give solutions on an urgent basis. My work is continuously stucked because of this only.
Issue Analytics
- State:
- Created 5 years ago
- Comments:5
I am closing this issue because it does not contain the necessary environment info, and there has been no followup in a while.
If you found this thread after encountering the same issue in the latest release, please feel free to create a new issue with up-to-date information by clicking here.
Fixed with: