-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to resolve module: createReactNativeComponentClass from react-native-svg/elements/Rect.js #1030
Comments
@teerasej I don't think expo 18 supports RN 46. |
Same error!! dependencies": { |
I have same error with this dependencies 👍 |
@sankhadeeproy007 Can you help us ? |
Can you guys remove native-base and check if that solves the issue? I'm not very sure native-base is causing this. It seems to be looking for |
Has the same issue {
"name": "EnjoyReactNative",
"version": "0.1.0",
"private": true,
"devDependencies": {
"jest-expo": "~18.0.0",
"react-native-scripts": "0.0.50",
"react-test-renderer": "16.0.0-alpha.12"
},
"main": "./node_modules/react-native-scripts/build/bin/crna-entry.js",
"scripts": {
"start": "react-native-scripts start",
"eject": "react-native-scripts eject",
"android": "react-native-scripts android",
"ios": "react-native-scripts ios",
"test": "node node_modules/jest/bin/jest.js --watch"
},
"jest": {
"preset": "jest-expo"
},
"dependencies": {
"expo": "^18.0.3",
"react": "^15.6.1",
"react-native": "^0.46.4"
}
} |
@benweizhu Did you check the above mentioned comment? |
Same issue with native-base or antd-mobile. |
Was there a resolution for this issue? I am hitting the same issue. As soon as I import victory-native:
I get this: I have:
Following the watchman, node_module, and cache steps do not resolve. I found this issue on react-native-svg repository, but there is no resolution there either. |
I have just forced the older versions of the react-native-svg (precisely: 5.1.7) and the problem disappeared. Hope it helps. |
What version of react-native are you using with
Are you using |
Did anyone manage to resolve this? I reinstalled all my dependencies today and hit this totally out of the blue! I've tried everything mentioned so far here, but no joy. Would really appreciate it if someone could post a list of working/fixed dependencies. Thanks! |
@trickeyd Can you post your dependency list here |
Apologies, I meant to repost here. In the end I had to just upgrade everything to the latest stable versions. I did this by running 'create-react-native-app' in a new folder, and seeing what it used. Fixed the problem. This is obviously a crappy way of checking the latest lib combination. Where should I be looking for this info? Anyway, it helps anyone, the relevant libs I ended up with were:
|
We do have the compatibility table here https://github.com/GeekyAnts/NativeBase#6-compatibility-versions |
I tried to use Native-base 2.2.1 with react-native 0.46.0, according to 2.2.1 release
But unfortunately when start the packager and run on device. It's fail and show error I don't see before.
react-native, react and native-base version
Expected behaviour
Application should just run and show UI on device
Actual behaviour
After JavaScript bundle finished got following log in terminal
Got following error message in both platforms
###iOS:
Steps to reproduce (code snippet or screenshot)
create-react-native-app test
in Terminalrm -rf node_modules && npm install
npm start
npm run android
to deploy directly to deviceScreenshot of emulator/device
Is the bug present in both ios and android or in any one of them?
Both iOS and Android got quite different message, but pointed to same origin, as you can see in screenshot
Any other additional info which would help us debug the issue quicker.
The error shows up when use following dependencies:
But not if I use previous version of react, react-native, and native-base:
I tried both create a fresh project and also with suggestion
But no luck.
The text was updated successfully, but these errors were encountered: