grapp-dev / stacks

A set of components for building layouts in React Native. Powered by React Native Unistyles.
https://stacks.grapp.dev
MIT License
982 stars 24 forks source link

Cannot run latest version in expo web #39

Closed rborn closed 5 months ago

rborn commented 1 year ago

👋 I have an issue with the latest expo for web, I get Can't import the named export 'Children' from non EcmaScript module (only default export is available)

I added the plugins: [["react-native-web" /* { commonjs: true } */]] (with or without commonjs) but for some reason it doesn't seem to work.

Steps:

Any ideas ? 🙏

rborn commented 1 year ago

Small comment, 2.2.1 works well :)

mobily commented 1 year ago

@rborn oh no, this bug again 🙈 could you provide a repro repo? I don't use expo on a daily-basis

rborn commented 1 year ago

@mobily I will try to add one tomorrow 😍

rborn commented 1 year ago

@mobily here you go ❤️ https://github.com/rborn/stacks_expo_issue 🙏

The proper error is

Uncaught TypeError: Cannot read properties of undefined (reading 'get')
    at ./node_modules/@mobily/stacks/dist/esm/index.mjs (index.mjs:553:1)

which leads in the end to Can't import the named export 'Children' from non EcmaScript module (only default export is available)

hamedb89 commented 1 year ago

I had the same issue. Version 1.4.1 checks out though. Might be a starting point.