jaredh159 / tailwind-react-native-classnames

simple, expressive API for tailwindcss + react-native

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Use for react web

zvitek opened this issue · comments

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!

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:

#125