nandorojo / moti

šŸ¼ The React Native (+ Web) animation library, powered by Reanimated 3.
https://moti.fyi
MIT License
3.9k stars 120 forks source link

TypeError: 0, _$$_REQUIRE(_dependencyMap[0], "../..").(function imported from other file) is not a function (it is undefined), js engine: hermes #331

Closed Linuhusainnk closed 6 months ago

Linuhusainnk commented 6 months ago

Is there an existing issue for this?

Do you want this issue prioritized?

Current Behavior

App crashes and shows error when using utility function imported from external defined file

Expected Behavior

No response

Steps To Reproduce

No response

Versions

- Moti: 0.27.2
- Reanimated: 3.0.2
- React Native: 0.72.4

Screenshots

No response

Reproduction

https://github.com/Linuhusainnk/Bugs

Linuhusainnk commented 6 months ago

@nandorojo will be helpfull if you could go through this issue

shared github repo to reproduce the issue

nandorojo commented 6 months ago

Remember, you marked it as not urgent so I'll get to it when I have some free time

nandorojo commented 6 months ago

You misspelled Skeleton.Group

Linuhusainnk commented 6 months ago

@nandorojo

spell corrected, still same issue exist

nandorojo commented 6 months ago

What makes you think this is a moti issue

Linuhusainnk commented 6 months ago

Would be, tried in 3 projects with similar folder structure

nandorojo commented 6 months ago

Sorry I donā€™t understand what you mean. Thereā€™s nothing in this error message mentioning moti, so Iā€™m guessing this is a separate issue with your code.

Linuhusainnk commented 6 months ago

without moti its working fine

Linuhusainnk commented 6 months ago

@nandorojo any config changes needed ?

Linuhusainnk commented 6 months ago

@nandorojo

issue still exist https://github.com/Linuhusainnk/Bugs

1

nandorojo commented 6 months ago

That error you just sent isn't even related to moti. It seems like your setup is off.

Also, in open source it's typically best not to tag someone if you choose not to sponsor just FYI

Linuhusainnk commented 6 months ago

Issue sorted out, by changing the babel config to choose specific root path