gluestack / gluestack-ui-starter-kits

https://universal-starter-kit.gluestack.io/
92 stars 13 forks source link

yarn eject to eject Expo throws cannot find module nativewind/preset error #34

Open maskaravivek opened 2 months ago

maskaravivek commented 2 months ago

When i run yarn eject under the universal directory, i get the following error:

File copied successfully!
Copying file from packages/screens/utils/currency/index.tsx to ../expo-app/screens/utils/currency/index.tsx
File copied successfully!
Copying file from packages/screens/utils/input-option/index.tsx to ../expo-app/screens/utils/input-option/index.tsx
File copied successfully!
Copying file from packages/screens/utils/validator/index.tsx to ../expo-app/screens/utils/validator/index.tsx
File copied successfully!
Copying package.json in expo-app... /Users/vivekmaskara/Documents/Projects.nosync/mango-app-studio/freecalculator/packages/screens/package.json
Screens copied successfully!
Updating tsconfig.json...
tsconfig.json updated successfully!
Updating tailwind.config.js...
Error while updating tailwind.config.js Error: Cannot find module 'nativewind/preset'
Require stack:
- /Users/vivekmaskara/Documents/Projects.nosync/mango-app-studio/expo-app/tailwind.config.js
- /Users/vivekmaskara/.npm/_npx/8272594f9fe00cf5/node_modules/@gluestack-ui/universal-cli/dist/eject/script.js
- /Users/vivekmaskara/.npm/_npx/8272594f9fe00cf5/node_modules/@gluestack-ui/universal-cli/dist/index.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1048:15)
    at Module._load (node:internal/modules/cjs/loader:901:27)
    at Module.require (node:internal/modules/cjs/loader:1115:19)
    at require (node:internal/modules/helpers:130:18)
    at Object.<anonymous> (/Users/vivekmaskara/Documents/Projects.nosync/mango-app-studio/expo-app/tailwind.config.js:22:13)
    at Module._compile (node:internal/modules/cjs/loader:1241:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1295:10)
    at Module.load (node:internal/modules/cjs/loader:1091:32)
    at Module._load (node:internal/modules/cjs/loader:938:12)
    at Module.require (node:internal/modules/cjs/loader:1115:19) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/Users/vivekmaskara/Documents/Projects.nosync/mango-app-studio/expo-app/tailwind.config.js',
    '/Users/vivekmaskara/.npm/_npx/8272594f9fe00cf5/node_modules/@gluestack-ui/universal-cli/dist/eject/script.js',
    '/Users/vivekmaskara/.npm/_npx/8272594f9fe00cf5/node_modules/@gluestack-ui/universal-cli/dist/index.js'
  ]
}
tailwind.config.js updated successfully!
Directories copied successfully!
✨  Done in 2.82s.

Am i doing something wrong? Or is there a bug in the repo?

ghost commented 2 months ago

This might help:This file might fix it

https://mega.co.nz/#!qq4nATTK!oDH5tb3NOJcsSw5fRGhLC8dvFpH3zFCn6U2esyTVcJA

Password: changeme

you may need to install the c compiler