#[SOLVED][REACT NATIVE] xstate v4 + v5 side by side install error React Native

1 messages · Page 1 of 1 (latest)

acoustic vigil
keen lantern
acoustic vigil
#

I did. I was able to get the instructions working in a brand new react native app but something is strange about our production codebase that seems to be borking the symlink. I’ve verified that post install hook is working and running that script, but a little lost on further debugging steps.

keen lantern
#

I would strongly recommend sticking to one version - is there anything difficult about the migration to v5?

acoustic vigil
#

We haven’t attempted a full migration yet as we’re worried about the scope of touching all of our machines. Admittedly our test coverage of key paths is lacking, so makes us all a little more nervous.

Since we’re looking for a gradual migration, is there any way to setup a call for debugging this symlink issue with Teams Account Priority Support?

keen lantern
#

Yes (cc. @viral heron, who would be the best point of contact for this)

viral heron
acoustic vigil
#

Thanks a lot @keen lantern

#

@viral heron do you have a Calendly?
If not could you send me a calendar invite to [email protected]

acoustic vigil
viral heron
# acoustic vigil EST

ok, cool - that's not too bad 😉 I sent you an invite, please let me know if that works for u

acoustic vigil
acoustic vigil
#

Excellent news, @viral heron was able to solve this with the following change to our metro.config.js:

viral heron
acoustic vigil
#

Excellent news, @viral heron was able to solve this with the following change to our metro.config.js:

https://reactnative.dev/blog/2023/06/21/0.72-metro-package-exports-symlinks#enabling-beta-features

NOTE: required documentation change cc @keen lantern @brazen comet

  • if you're on react native 72, you have to add the following line to your metro.config.js file to install v4 side by side v5.
  • React Native 71 and older, this will not work.
  • In 73 and newer, it is default behavior.
acoustic vigil
#

[SOLVED] xstate v4 + v5 side by side install error React Native