software-mansion / react-native-reanimated

React Native's Animated library reimplemented
https://docs.swmansion.com/react-native-reanimated/
MIT License
8.61k stars 1.27k forks source link

Unable to resolve module ./publicGlobals #6026

Open alexprigi opened 1 month ago

alexprigi commented 1 month ago

Description

Hi, I am trying to upgrade react-native-reanimated from v2 to v3 and I am getting this error. I have already added the plugin line in the babel.config.js file

Simulator Screenshot - iPhone 15 Pro Max - 2024-05-15 at 15 41 31

Steps to reproduce

upgrade reanimated from v2 to v3

Snack or a link to a repository

a

Reanimated version

3.11.0

React Native version

0.73.8

Platforms

Android, iOS

JavaScript runtime

None

Workflow

None

Architecture

None

Build type

None

Device

None

Device model

No response

Acknowledgements

Yes

github-actions[bot] commented 1 month ago

Hey! 👋

It looks like you've omitted a few important sections from the issue template.

Please complete Snack or a link to a repository section.

github-actions[bot] commented 1 month ago

Hey! 👋

The issue doesn't seem to contain a minimal reproduction.

Could you provide a snack or a link to a GitHub repository under your username that reproduces the problem?

szydlovsky commented 1 month ago

Hello @alexprigi 👋 According to our docs, migrating from Rea v2 to Rea v3 shouldn't break any stuff: docs page. I can, however, suggest a few steps to make sure everything is freshly installed and cleaned:

  1. Run git clean -xdf from the root of the project. It cleans whole lot of caches, node_modules, pods and others
  2. Execute yarn also in the root
  3. If you're using iOS, do: cd ios && bundle install && bundle exec pod install - recently this is the recommended way to install the pods in a react native project
  4. When running, do yarn start --reset-cache to make sure packager cache is also cleaned

Let me know if it changes anything!

alexprigi commented 1 month ago

HI @szydlovsky Thank you for your suggestions. I have tried to follow what you suggested, but unfortunately I keep getting the same error.