Skip to content
This repository has been archived by the owner on Dec 11, 2023. It is now read-only.

importing @gluestack-style/config crash with styled-resolver #517

Closed
fnky opened this issue Nov 3, 2023 · 3 comments
Closed

importing @gluestack-style/config crash with styled-resolver #517

fnky opened this issue Nov 3, 2023 · 3 comments
Assignees

Comments

@fnky
Copy link

fnky commented Nov 3, 2023

When using the @gluestack-style/babel-plugin-styled-resolver babel plugin, importing @gluestack-style/config results in the following error to be thrown:

node_modules/@gluestack-ui/config/build/gluestack-ui.config.js: /Users/chris/Development/Personal/Expo/gluestack-babel-bug-repro/node_modules/@gluestack-ui/config/build/gluestack-ui.config.js: Cannot read properties of undefined (reading 'forEach')

You can find a minimal reproduction of this here.

Clone the repo and run yarn start --clear (to ensure cache clearance) and start the project on iOS or Android.

Removing the babel plugin resolves the issue.

Tested on Expo 48 and 49. Not tested with bare React Native.

Also tested with and without setting GLUESTACK_STYLE_TARGET=native environment variable.

@ankit-tailor
Copy link
Contributor

Hey @fnky, Thanks for reporting the issue. We'll look into it.

@Gluant101
Copy link

Hi @fnky, we are going to pick this up in the next few sprints. There are pending tasks that are prioritised higher in our tracker. Hope you understand 🙂

@Gluant101 Gluant101 moved this from Backlog to Parked (No commitments) in gluestack support Dec 1, 2023
@ankit-tailor
Copy link
Contributor

Hey @fnky, Please try the latest version of @gluestack-style/babel-plugin-styled-resolver.

@github-project-automation github-project-automation bot moved this from Parked (No commitments) to Done in gluestack support Dec 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
No open projects
Status: Done
Development

No branches or pull requests

4 participants