infinitered / reactotron

A desktop app for inspecting your React JS and React Native projects. macOS, Linux, and Windows.
https://docs.infinite.red/reactotron/
MIT License
14.83k stars 943 forks source link

TypeError: (0, _expoModulesCore.requireNativeModule) is not a function. (In '(0, _expoModulesCore.requireNativeModule)('ExpoCrypto')', '(0, _expoModulesCore.requireNativeModule)' is undefined) #1250

Open bhardwajpankaj opened 2 years ago

bhardwajpankaj commented 2 years ago

{ "scripts": { "start": "react-native start", "android": "react-native run-android", "ios": "react-native run-ios", "web": "expo start --web", "eject": "expo eject" }, "dependencies": { "@expo/vector-icons": "^12.0.0", "@react-native-async-storage/async-storage": "~1.15.0", "@react-native-community/netinfo": "7.1.3", "@react-native-masked-view/masked-view": "0.2.6", "@react-navigation/bottom-tabs": "^6.3.1", "@react-navigation/drawer": "^6.4.1", "@react-navigation/native": "^6.0.10", "@react-navigation/stack": "^6.2.1", "expo": "^44.0.0", "expo-apple-authentication": "~4.1.0", "expo-application": "~4.0.0", "expo-asset": "~8.4.3", "expo-barcode-scanner": "~11.2.0", "expo-blur": "~11.0.0", "expo-constants": "~13.0.1", "expo-device": "~4.1.0", "expo-google-app-auth": "~8.3.0", "expo-location": "~14.0.1", "expo-modules-core": "^0.6.5", "expo-permissions": "~13.1.0", "expo-splash-screen": "~0.14.1", "expo-status-bar": "~1.2.0", "expo-updates": "~0.11.7", "prop-types": "^15.7.2", "react": "17.0.1", "react-dom": "17.0.1", "react-native": "0.64.3", "react-native-dropdown-menu": "^2.0.0", "react-native-elements": "^3.4.1", "react-native-expo-cached-image": "^1.3.1", "react-native-expo-image-cache": "^4.1.0", "react-native-fast-image": "^8.3.4", "react-native-gesture-handler": "~2.1.0", "react-native-material-dropdown": "^0.11.1", "react-native-multiple-select": "^0.5.6", "react-native-picker-select": "^8.0.4", "react-native-reanimated": "~2.3.1", "react-native-safe-area-context": "3.3.2", "react-native-safe-area-view": "^1.1.1", "react-native-screens": "~3.10.1", "react-native-simple-dialogs": "^1.4.0", "react-native-star-rating": "^1.1.0", "react-native-toast-message": "^1.4.9", "react-native-vector-icons": "^8.1.0", "react-native-web": "0.17.1", "react-navigation": "^4.4.4", "react-redux": "^7.2.4", "redux": "^4.1.0", "sentry-expo": "^4.0.0", "expo-crypto": "~10.1.1" }, "devDependencies": { "@babel/core": "^7.12.9", "@babel/runtime": "7.14.0", "@react-native-community/eslint-config": "2.0.0", "babel-jest": "26.6.3", "eslint": "7.14.0", "jest": "26.6.3", "metro-react-native-babel-preset": "0.64.0", "react-test-renderer": "17.0.1" }, "rnpm": { "assets": [ "./assets/fonts" ] }, "private": true, "name": "", "version": "1.0.18" }

bhardwajpankaj commented 2 years ago

getting this error even I have installed "expo-crypto" as well

Kasik-D commented 2 years ago

Same problem

{ "main": "index.js", "scripts": { "start": "expo start", "android": "expo start --android", "ios": "expo start --ios", "web": "expo start --web", "eject": "expo eject" }, "husky": { "hooks": { "pre-commit": "lint-staged" } }, "lint-staged": { "src/*/.{js,jsx,ts,tsx}": [ "prettier --write", "eslint --fix" ] }, "dependencies": { "@expo/config-plugins": "^4.1.1", "@expo/vector-icons": "^12.0.0", "@react-native-community/datetimepicker": "4.0.0", "@react-native-community/masked-view": "0.1.10", "@react-navigation/bottom-tabs": "^5.11.11", "@react-navigation/drawer": "^5.12.5", "@react-navigation/native": "^5.9.4", "@react-navigation/stack": "^5.14.5", "@sentry/react-native": "^3.2.13", "@stripe/stripe-react-native": "0.2.3", "axios": "^0.21.1", "date-fns": "^2.22.1", "expo": "^44.0.0", "expo-application": "~4.0.1", "expo-auth-session": "^3.6.1", "expo-constants": "~13.0.1", "expo-dev-client": "~0.7.2", "expo-device": "~4.1.0", "expo-firebase-analytics": "~6.0.0", "expo-font": "~10.0.4", "expo-linear-gradient": "~11.0.0", "expo-linking": "^3.0.0", "expo-localization": "~12.0.0", "expo-random": "^12.2.0", "expo-secure-store": "~11.1.0", "expo-splash-screen": "~0.14.1", "expo-status-bar": "~1.2.0", "expo-updates": "~0.11.6", "expo-web-browser": "^10.2.0", "formik": "^2.2.8", "i18n-js": "^3.8.0", "lodash": "^4.17.21", "native-base": "3.0.0-next.37", "prop-types": "^15.7.2", "react": "17.0.1", "react-dom": "17.0.1", "react-native": "https://github.com/expo/react-native/archive/sdk-44.0.0.tar.gz", "react-native-chart-kit": "^6.11.0", "react-native-confirmation-code-field": "^7.2.0", "react-native-country-picker-modal": "^2.0.0", "react-native-gesture-handler": "~2.1.0", "react-native-linear-gradient": "^2.5.6", "react-native-modal-datetime-picker": "^13.0.0", "react-native-pager-view": "5.4.9", "react-native-reanimated": "~2.3.1", "react-native-safe-area-context": "^4.2.4", "react-native-screens": "~3.10.1", "react-native-status-bar-height": "^2.6.0", "react-native-svg": "12.1.1", "react-native-tab-view": "^3.1.1", "react-native-toast-message": "^1.6.0", "react-native-web": "0.17.1", "react-query": "^3.16.1", "sentry-expo": "^4.0.0", "styled-components": "^5.3.0", "styled-system": "^5.1.5", "victory-native": "^36.2.0", "yup": "^0.32.9", "zustand": "^3.6.2" }, "devDependencies": { "@babel/core": "^7.12.9", "@babel/eslint-parser": "^7.14.3", "eslint": "^8.13.0", "eslint-config-prettier": "^8.3.0", "eslint-plugin-import": "^2.23.3", "eslint-plugin-prettier": "^3.4.0", "eslint-plugin-react": "^7.23.2", "eslint-plugin-react-hooks": "^4.2.0", "eslint-plugin-react-native": "^3.11.0", "eslint-plugin-simple-import-sort": "^7.0.0", "husky": "^4.3.8", "lint-staged": "^10.5.4", "prettier": "^2.3.0" }, "private": true }

Kasik-D commented 2 years ago

File "expo-module-scripts/tsconfig.base" not found. Screenshot_1

Kasik-D commented 2 years ago

Hello, you need to add expo-crypto 10.1.2, on your package.json After that delete node_modules, and install

artpersona commented 2 years ago

Also getting this issue, still no fix ?

prince381 commented 2 years ago

@bhardwajpankaj were you able to fix this issue?? I'm having the same problem too and I've done as @Kasik-D suggested but still not working. Is there any other solution that actually works???

WaelMohammedAbed commented 2 years ago

I had the same problem and after running this "expo install expo-modules-core" it worked

ghost commented 1 year ago

I am having the same issue here:

{
  "main": "node_modules/expo/AppEntry.js",
  "scripts": {
    "start": "expo start --dev-client",
    "android": "expo start --android",
    "ios": "expo start --ios",
    "web": "expo start --web",
    "eject": "expo eject",
    "lint": "eslint --ext .ts,.tsx src/*",
    "lint:fix": "eslint --fix --ext .ts,.tsx src/*",
    "previewIos": "eas build --profile preview --platform ios",
    "build:development": "sh -c 'eas build --profile development --platform=$0'",
    "build:preview": "sh -c 'eas build --profile preview --platform=$0'",
    "build:prod": "sh -c 'eas build --profile prod --platform=$0'"
  },
  "dependencies": {
    "@expo-google-fonts/noto-sans": "^0.2.0",
    "@expo/vector-icons": "^12.0.0",
    "@gorhom/bottom-sheet": "^4.3.1",
    "@react-native-community/datetimepicker": "4.0.0",
    "@react-navigation/bottom-tabs": "^5.11.11",
    "@react-navigation/native": "^5.9.4",
    "@react-navigation/stack": "^5.14.5",
    "@sentry/react-native": "^3.4.1",
    "@stripe/stripe-react-native": "0.2.3",
    "amazon-cognito-identity-js": "^5.2.8",
    "aws-amplify": "^4.3.8",
    "eas-cli": "^0.53.0",
    "expo": "~44.0.0",
    "expo-app-loading": "~1.3.0",
    "expo-application": "~4.0.2",
    "expo-asset": "~8.4.6",
    "expo-auth-session": "^3.7.2",
    "expo-camera": "~12.1.2",
    "expo-constants": "~13.0.2",
    "expo-crypto": "~10.1.1",
    "expo-dev-client": "~0.8.5",
    "expo-device": "~4.1.1",
    "expo-font": "~10.0.4",
    "expo-image-picker": "~12.0.1",
    "expo-linking": "~3.0.0",
    "expo-location": "~14.0.1",
    "expo-notifications": "~0.14.0",
    "expo-splash-screen": "~0.14.1",
    "expo-status-bar": "~1.2.0",
    "expo-system-ui": "~1.1.0",
    "expo-updates": "^0.11.7",
    "expo-web-browser": "~10.1.0",
    "geolib": "^3.3.3",
    "react": "17.0.1",
    "react-dom": "17.0.1",
    "react-native": "0.64.3",
    "react-native-cluster-map": "^1.0.9",
    "react-native-dropdown-picker": "^5.2.3",
    "react-native-flash-message": "^0.1.23",
    "react-native-gesture-handler": "~2.1.0",
    "react-native-image-viewing": "^0.2.0",
    "react-native-maps": "0.29.4",
    "react-native-reanimated": "~2.3.1",
    "react-native-safe-area-context": "3.3.2",
    "react-native-safe-area-view": "^1.1.1",
    "react-native-screens": "~3.10.1",
    "react-native-slide-to-unlock": "^0.1.6",
    "react-native-web": "0.17.1",
    "rn-swipe-button": "^1.3.6",
    "sentry-expo": "^4.0.0",
    "styled-components": "^5.3.0",
    "expo-random": "~12.1.1"
  },
  "devDependencies": {
    "@babel/core": "^7.12.9",
    "@react-native-async-storage/async-storage": "~1.15.0",
    "@react-native-community/netinfo": "7.1.3",
    "@types/react": "~17.0.21",
    "@types/react-native": "~0.64.12",
    "@types/react-native-datepicker": "^1.7.1",
    "@types/styled-components": "^5.1.15",
    "@types/styled-components-react-native": "^5.1.2",
    "@typescript-eslint/eslint-plugin": "^5.9.0",
    "@typescript-eslint/parser": "^5.9.0",
    "eslint": "^8.6.0",
    "eslint-config-airbnb": "^19.0.4",
    "eslint-import-resolver-typescript": "^2.5.0",
    "eslint-plugin-import": "^2.25.4",
    "eslint-plugin-jsx-a11y": "^6.5.1",
    "eslint-plugin-react": "^7.28.0",
    "eslint-plugin-react-hooks": "^4.3.0",
    "typescript": "~4.3.5"
  },
  "private": true
}