gluestack

gluestack Logogluestack

Hi - I'm trying to upgrade myproject from gluestack v1 to gluestack v2.

johnsd_41313 posted this in #support
Open in Discord
Avatar
johnsd_41313OP
Following instructions from https://gluestack.io/ui/docs/guides/more/upgrade-to-v2 .
I'm using yarn 4.5.1.
Running: npx gluestack-ui@latest init
Results in:
Error occured in init. (Error: Command failed: yarn config set legacy-peer-deps true)

So it seems that "gluestack-ui init" does not support modern versions of yarn?
I really don't want to downgrade to old yarn or npm.

What does "gluestack-ui init" do exactly? Perhaps I can just run some commands manually?

Related issue thread: https://github.com/gluestack/gluestack-ui/issues/2567

Any help would be greatly appreciated.
Thanks!

1 Reply