You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm experimenting with gluestack in a monorepo that is powered by yarn workspaces. One use case I think we might have is the ability to eject the theme from within one of the repo's workspaces. When I try to do that, using npx gluestack-ui-scripts eject-theme, I get:
⏳ Ejecting theme. Please wait...
❌ Error: The '@gluestack-ui/config' package was not found in node_modules. Please run npm install @gluestack-ui/config@latest to install it.
I'm experimenting with gluestack in a monorepo that is powered by yarn workspaces. One use case I think we might have is the ability to eject the theme from within one of the repo's workspaces. When I try to do that, using
npx gluestack-ui-scripts eject-theme
, I get:This is because @gluestack-ui/config gets installed in the root-level node_modules directory. This line looks in the workspace's local node_modules directory: https://github.com/gluestack/gluestack-ui-cli/blob/main/packages/gluestack-ui-scripts/src/scripts/eject-theme/index.ts#L8C4-L8C16
So it can't find it.
It might be nice to have this respect the node modules resolution so that it just resolves to the closest installation of @gluestack-ui/config
I would be happy to work on a PR if this is something you would want.
The text was updated successfully, but these errors were encountered: