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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when adding import {ChartDot, ChartPath, ChartPathProvider} from '@rainbow-me/animated-charts'; TypeError: _ReanimatedModule.default.createNode is not a function (it is undefined), js engine: hermes #98

Open
JegoLazaro opened this issue Oct 15, 2023 · 10 comments

Comments

@JegoLazaro
Copy link

TypeError: _ReanimatedModule.default.createNode is not a function (it is undefined), js engine: hermes
Invariant Violation: "main" has not been registered. This can happen if:

  • Metro (the local dev server) is run from the wrong folder. Check if Metro is running, stop it and restart it in the current project.
  • A module failed to load due to an error and AppRegistry.registerComponent wasn't called., js engine: hermes
@lmartinez63
Copy link

Same issue here this is my package json
{
"name": "test",
"version": "1.0.0",
"main": "node_modules/expo/AppEntry.js",
"scripts": {
"start": "expo start",
"android": "expo start --android",
"ios": "expo start --ios",
"web": "expo start --web"
},
"dependencies": {
"@rainbow-me/animated-charts": "^1.0.0-alpha.6",
"expo": "^49.0.0",
"expo-status-bar": "~1.6.0",
"react": "18.2.0",
"react-native": "0.72.5",
"react-native-reanimated": "~3.3.0"
},
"devDependencies": {
"@babel/core": "^7.20.0"
},
"private": true
}

@Luyolop1
Copy link

Same here "_ReanimatedModule.default.createNode is not a function (it is undefined), js engine: hermes
"

@JegoLazaro
Copy link
Author

Hello, for this one the work around that worked for me is to use react-native-wagmi-charts instead. Cant seem to find a fix with using animated charts.

@Luyolop1
Copy link

Luyolop1 commented Nov 12, 2023 via email

@mchitaru
Copy link

mchitaru commented Nov 30, 2023

This error is a showstopper and is a pity, as there are no other good alternatives on react native. Can anyone help fix this and bring this project back to life?

@Luyolop1
Copy link

Luyolop1 commented Dec 2, 2023 via email

@JegoLazaro
Copy link
Author

This error is a showstopper and is a pity, as there are no other good alternatives on react native. Can anyone help fix this and bring this project back to life?

Hello, i did a simple crypto price tracker but i encountered this issue. I removed the imports from this package and uninstalled the whole package. I used react native wagmi charts instead and i finished my project. Wagmi charts has good docs also and works the same in my case. As long as this error is not resolved i would wagmi charts is the way to go as of now. Hope this helps 👍🏻

@mchitaru
Copy link

This error is a showstopper and is a pity, as there are no other good alternatives on react native. Can anyone help fix this and bring this project back to life?

Hello, i did a simple crypto price tracker but i encountered this issue. I removed the imports from this package and uninstalled the whole package. I used react native wagmi charts instead and i finished my project. Wagmi charts has good docs also and works the same in my case. As long as this error is not resolved i would wagmi charts is the way to go as of now. Hope this helps 👍🏻

Hi! Thanks for the suggestion, but I already tried wagmi charts and it's not as good and also has some animation problems with transitions. It seems something changed in the React Reanimated libarary and old projects didn't update

@Luyolop1
Copy link

Luyolop1 commented Dec 11, 2023 via email

@aniketfuryrocks
Copy link

+1

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

5 participants