jaredh159 / tailwind-react-native-classnames

simple, expressive API for tailwindcss + react-native
2.08k stars 84 forks source link

Use for react web #221

Closed zvitek closed 1 year ago

zvitek commented 1 year ago

Hi, I am using NX monorepo and I am writing a mobile app for react native and also for react web using React Native Web.

Unfortunately when I start the web app I get an error in the browser

Uncaught Error: ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: 95075

Is it possible to use your implementation also for the web part?

Thank you!

jaredh159 commented 1 year ago

are you sure that error is coming from twrnc? I'm not aware of any reason why you'd get an error with nx and a monorepo, but there are tons of configuration issues that could be at play.

as far as RN Web goes, it's not an aim of this library to support web utilities, see here for more context:

https://github.com/jaredh159/tailwind-react-native-classnames/discussions/125