#[SOLVED][REACT NATIVE] xstate v4 + v5 side by side install error React Native
1 messages · Page 1 of 1 (latest)
Did you follow all the steps here? https://stately.ai/docs/migration#how-can-i-use-both-xstate-v4-and-v5
The guide below explains how to migrate from XState version 4 to version 5. Migrating from XState v4 to v5 should be a straightforward process. If you get stuck or have any questions, please reach out to the Stately team on our Discord.
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.
I would strongly recommend sticking to one version - is there anything difficult about the migration to v5?
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?
Yes (cc. @viral heron, who would be the best point of contact for this)
@acoustic vigil we can hop on a call next week to try get to the bottom of this
Thanks a lot @keen lantern
@viral heron do you have a Calendly?
If not could you send me a calendar invite to [email protected]
what timezone are u in?
EST
ok, cool - that's not too bad 😉 I sent you an invite, please let me know if that works for u
Works great! Thanks so much and looking forward to tackling the issue together 💪
Excellent news, @viral heron was able to solve this with the following change to our metro.config.js:
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.jsfile to install v4 side by side v5. - React Native 71 and older, this will not work.
- In 73 and newer, it is default behavior.
[SOLVED] xstate v4 + v5 side by side install error React Native