Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR ReferenceError: Can't find variable: React #333

Open
anishs95 opened this issue Jun 11, 2023 · 0 comments
Open

ERROR ReferenceError: Can't find variable: React #333

anishs95 opened this issue Jun 11, 2023 · 0 comments

Comments

@anishs95
Copy link

馃挰 Question

UI Kitten and Eva version

Package Version
@eva-design/eva
@ui-kitten/components

View@http://10.0.2.2:8081/index.bundle?platform=android&dev=true&minify=false&app=com.ankan.dev&modulesOnly=false&runModule=true:47616:43
AppContainer@http://10.0.2.2:8081/index.bundle?platform=android&dev=true&minify=false&app=com.ankan.dev&modulesOnly=false&runModule=true:47454:36
KittenTricks(RootComponent)@http://10.0.2.2:8081/index.bundle?platform=android&dev=true&minify=false&app=com.ankan.dev&modulesOnly=false&runModule=true:85034:28
ERROR ReferenceError: Can't find variable: React

This error is located at:
in ApplicationProvider (at app.component.tsx:38)
in RCTView (at View.js:89)
in View (at NativeAppearance.tsx:4)
in FallbackAppearanceProvider (at src/index.tsx:70)
in AppearanceProvider (at app.component.tsx:37)
in App (at app.component.tsx:65)
in AppLoading (at app.component.tsx:61)
in _default (at renderApplication.js:57)
in RCTView (at View.js:89)
in View (at AppContainer.js:101)
in RCTView (at View.js:89)
in View (at AppContainer.js:128)
in AppContainer (at renderApplication.js:50)
in KittenTricks(RootComponent) (at renderApplication.js:67)
WARN Possible Unhandled Promise Rejection (id: 0):
ReferenceError: Can't find variable: React
render@http://10.0.2.2:8081/index.bundle?platform=android&dev=true&minify=false&app=com.ankan.dev&modulesOnly=false&runModule=true:98570:21
finishClassComponent@http://10.0.2.2:8081/index.bundle?platform=android&dev=true&minify=false&app=com.ankan.dev&modulesOnly=false&runModule=true:70480:43
updateClassComponent@http://10.0.2.2:8081/index.bundle?platform=android&dev=true&minify=false&app=com.ankan.dev&modulesOnly=false&runModule=true:70448:50
beginWork$1@http://10.0.2.2:8081/index.bundle?platform=android&dev=true&minify=false&app=com.ankan.dev&modulesOnly=false&runModule=true:74905:29
performUnitOfWork@http://10.0.2.2:8081/index.bundle?platform=android&dev=true&minify=false&app=com.ankan.dev&modulesOnly=false&runModule=true:74418:29
workLoopSync@http://10.0.2.2:8081/index.bundle?platform=android&dev=true&minify=false&app=com.ankan.dev&modulesOnly=false&runModule=true:74366:28
renderRootSync@http://10.0.2.2:8081/index.bundle?platform=android&dev=true&minify=false&app=com.ankan.dev&modulesOnly=false&runModule=true:74348:25
performSyncWorkOnRoot@http://10.0.2.2:8081/index.bundle?platform=android&dev=true&minify=false&app=com.ankan.dev&modulesOnly=false&runModule=true:74138:40
performSyncWorkOnRoot@[native code]
flushSyncCallbacks@http://10.0.2.2:8081/index.bundle?platform=android&dev=true&minify=false&app=com.ankan.dev&modulesOnly=false&runModule=true:65513:36
flushSyncCallbacksOnlyInLegacyMode@http://10.0.2.2:8081/index.bundle?platform=android&dev=true&minify=false&app=com.ankan.dev&modulesOnly=false&runModule=true:65498:29
scheduleUpdateOnFiber@http://10.0.2.2:8081/index.bundle?platform=android&dev=true&minify=false&app=com.ankan.dev&modulesOnly=false&runModule=true:73846:47
dispatchSetState@http://10.0.2.2:8081/index.bundle?platform=android&dev=true&minify=false&app=com.ankan.dev&modulesOnly=false&runModule=true:68909:34
dispatchSetState@[native code]
onTasksFinish@http://10.0.2.2:8081/index.bundle?platform=android&dev=true&minify=false&app=com.ankan.dev&modulesOnly=false&runModule=true:164172:17
tryCallOne@http://10.0.2.2:8081/index.bundle?platform=android&dev=true&minify=false&app=com.ankan.dev&modulesOnly=false&runModule=true:27667:16
http://10.0.2.2:8081/index.bundle?platform=android&dev=true&minify=false&app=com.ankan.dev&modulesOnly=false&runModule=true:27748:27
http://10.0.2.2:8081/index.bundle?platform=android&dev=true&minify=false&app=com.ankan.dev&modulesOnly=false&runModule=true:28652:26
_callTimer@http://10.0.2.2:8081/index.bundle?platform=android&dev=true&minify=false&app=com.ankan.dev&modulesOnly=false&runModule=true:28571:17
_callReactNativeMicrotasksPass@http://10.0.2.2:8081/index.bundle?platform=android&dev=true&minify=false&app=com.ankan.dev&modulesOnly=false&runModule=true:28601:17
callReactNativeMicrotasks@http://10.0.2.2:8081/index.bundle?platform=android&dev=true&minify=false&app=com.ankan.dev&modulesOnly=false&runModule=true:28764:44
__callReactNativeMicrotasks@http://10.0.2.2:8081/index.bundle?platform=android&dev=true&minify=false&app=com.ankan.dev&modulesOnly=false&runModule=true:2347:46
http://10.0.2.2:8081/index.bundle?platform=android&dev=true&minify=false&app=com.ankan.dev&modulesOnly=false&runModule=true:2159:45
__guard@http://10.0.2.2:8081/index.bundle?platform=android&dev=true&minify=false&app=com.ankan.dev&modulesOnly=false&runModule=true:2331:15
flushedQueue@http://10.0.2.2:8081/index.bundle?platform=android&dev=true&minify=false&app=com.ankan.dev&modulesOnly=false&runModule=true:2158:21
flushedQueue@[native code]
invokeCallbackAndReturnFlushedQueue@[native code]

Package.json file

{
"name": "kitten-tricks",
"description": "UI Kitten Demo Application",
"version": "2.4.0",
"private": true,
"license": "MIT",
"author": "akveo contact@akveo.com",
"homepage": "https://github.com/akveo/kittenTricks#readme",
"repository": "git+https://github.com/akveo/kittenTricks.git",
"bugs": {
"url": "https://github.com/akveo/kittenTricks/issues"
},
"main": "./index.js",
"workspaces": {
"nohoist": [
"",
"
/"
]
},
"scripts": {
"android": "react-native run-android",
"ios": "react-native run-ios",
"start": "npm run env -- prod && react-native start",
"start:dev": "npm run env -- dev && react-native start --reset-cache",
"env": "node ./env/set-env.js",
"build": "tsc -p ./tsconfig.json",
"build:web": "expo build:web",
"clean": "rimraf ./dist ./web-build",
"lint": "tslint -c ./tslint.json ./src/
/*.{ts,tsx}",
"changelog": "conventional-changelog -i ./CHANGELOG.md -s",
"postinstall": "jetify"
},
"dependencies": {
"@babel/preset-react": "^7.22.5",
"@eva-design/eva": "^2.1.0",
"@eva-design/material": "^2.1.0",
"@react-native-async-storage/async-storage": "1.15.11",
"@react-native-community/masked-view": "0.1.10",
"@react-navigation/bottom-tabs": "^5.11.7",
"@react-navigation/drawer": "^5.12.3",
"@react-navigation/material-top-tabs": "^5.3.13",
"@react-navigation/native": "^5.9.2",
"@react-navigation/stack": "^5.14.2",
"@ui-kitten/components": "^5.3.1",
"@ui-kitten/date-fns": "5.1.0",
"@ui-kitten/eva-icons": "^5.3.1",
"@ui-kitten/moment": "5.1.0",
"date-fns": "^1.30.1",
"expo": "^40.0.0",
"expo-app-loading": "^1.0.1",
"expo-constants": "~9.3.3",
"expo-modules-core": "^1.0.3",
"expo-splash-screen": "~0.8.1",
"expo-web-browser": "~8.6.0",
"lottie-ios": "^3.4.0",
"lottie-react-native": "^5.1.3",
"moment": "^2.24.0",
"patch-package": "^6.2.2",
"react": "18.2.0",
"react-dom": "16.13.1",
"react-native": "0.71.3",
"react-native-appearance": "~0.3.3",
"react-native-collapsible": "^1.6.0",
"react-native-counters": "^1.2.0",
"react-native-device-info": "^5.5.1",
"react-native-dialog": "^9.2.1",
"react-native-gesture-handler": "~1.8.0",
"react-native-keyboard-aware-scroll-view": "^0.9.1",
"react-native-linear-gradient": "^2.5.6",
"react-native-loading-spinner-overlay": "^2.0.0",
"react-native-modal-dropdown": "^1.0.2",
"react-native-otp-textinput": "0.0.8",
"react-native-phone-number-input": "^2.1.0",
"react-native-popup-menu": "^0.16.1",
"react-native-reanimated": "~1.13.0",
"react-native-safari-view": "naoufal/react-native-safari-view#master",
"react-native-safe-area-context": "^3.1.9",
"react-native-screens": "~2.15.2",
"react-native-simple-toast": "^1.1.3",
"react-native-svg": "12.1.0",
"react-native-tab-view": "^2.13.0",
"react-native-vector-icons": "^9.2.0",
"react-native-web": "^0.15.0",
"reanimated-bottom-sheet": "^1.0.0-alpha.22"
},
"devDependencies": {
"@babel/core": "~7.9.0",
"@babel/runtime": "^7.8.3",
"@expo/metro-config": "^0.1.54",
"@expo/webpack-config": "~0.12.45",
"@types/react-native": "ts4.1",
"babel-plugin-module-resolver": "^4.0.0",
"babel-preset-expo": "8.3.0",
"conventional-changelog-cli": "^2.0.21",
"expo-cli": "^4.1.6",
"husky": "^1.1.2",
"jetifier": "^1.6.5",
"rimraf": "^2.6.2",
"tslint": "^6.0.0",
"typescript": "^4.1.5"
}
}

Node version

C:\Users\pro>node --version
v18.14.2

Can any one help me to sort this out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant