I am making a glustack library. I am using yarn and i have the following dependencies:
"packageManager": "yarn@4.8.1",
"dependencies": {
"@gluestack-ui/nativewind-utils": "^1.0.26",
"@gluestack-ui/overlay": "^0.1.22",
"@gluestack-ui/toast": "^1.0.9",
"@types/react": "^19.1.0",
"gluestack-ui": "^0.7.22",
"lodash": "^4.17.21",
"nativewind": "^4.1.23",
"react": "^19.1.0",
"react-native": "^0.79.0",
"react-native-reanimated": "^3.17.2",
"react-native-safe-area-context": "^5.3.0",
"react-native-svg": "^15.11.2",
"react-native-web": "0.19.13",
"tailwindcss": "^3.4.17",
"typescript": "^5.8.3"
},
"devDependencies": {
"@types/lodash": "^4"
}
I tried running
npx gluestack-ui init
and
yarn dlx gluestack-ui init
, i chose the library options but i always get this error
Error occured in init. (Error: Command failed: yarn config set legacy-peer-deps true)