gluestack-ui icon indicating copy to clipboard operation
gluestack-ui copied to clipboard

Facing issue after upgrading project to expo 49

Open Gluant101 opened this issue 1 year ago • 4 comments

Description

Error: While trying to resolve module clsx from file

CodeSandbox/Snack link

No response

Steps to reproduce

  1. Go to '...'
  2. Click on '...'
  3. Scroll down to '...'
  4. See error

gluestack-ui Version

3.3.1

Platform

  • [ ] Expo
  • [ ] React Native CLI
  • [ ] Next
  • [ ] Web
  • [ ] Android
  • [ ] iOS

Other Platform

No response

Additional Information

Issue: https://discord.com/channels/1050761204852858900/1192419797225443338

Gluant101 avatar Jan 11 '24 14:01 Gluant101

having same issue some update on this? any components more complex that needs some kind of anymation this error occurs.

neverson-silva avatar Jan 21 '24 18:01 neverson-silva

Posting the original issue from discord over here for ease of access. I too have the same issue, the web build fails to render after adding gluestack-ui. I am able to run the ios simulator though.

image

n1thun avatar Jan 23 '24 19:01 n1thun

Our app is an Expo 49 app (native and web) in an Nx monorepo. We had the same issue where the web build would fail with:

Unable to resolve "clsx" from "../../node_modules/@react-aria/utils/dist/module.js"

Going to metro.config.js and adding mjs to sourceExts fixed the issue (cjs and svg was previously added for other reasons and may be needed for this as well):

  resolver: {
    // other configs...
    sourceExts: [...sourceExts, 'svg', 'mjs', 'cjs'],
  },

diatche avatar Mar 05 '24 22:03 diatche

Hi there! To help us better understand and resolve your issue, could you please provide a minimal codebase that reproduces the problem? This will greatly assist us in diagnosing and fixing the issue more efficiently. Thank you so much for your cooperation!

rajat693 avatar Aug 05 '24 13:08 rajat693

Hey there, we are closing this issue for now, please feel free to reopen the issue if you are still facing it/ having any queries about it.

sra1kumar-NULL avatar Sep 24 '24 08:09 sra1kumar-NULL