You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to write a shared library based on NextUI. I have "mono" repo with PNPM. Build of a shared library is successful, I got generated index.js, index.d.ts and styles.css. CSS file has a length of 170k, currently I do not solve optimization.
But, when I try to use in another workspace, I got error:
I tried wrap <SharedButton> with NextUIProvider. Without any change, there is still error.
When I try to use only TailwindCSS, it works. However, I wanna create a shared library for usage in other projects.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
I'm trying to write a shared library based on NextUI. I have "mono" repo with PNPM. Build of a shared library is successful, I got generated
index.js
,index.d.ts
andstyles.css
. CSS file has a length of 170k, currently I do not solve optimization.But, when I try to use in another workspace, I got error:
I tried wrap
<SharedButton>
withNextUIProvider
. Without any change, there is still error.When I try to use only TailwindCSS, it works. However, I wanna create a shared library for usage in other projects.
Thanks for the advice,
Jiri
Beta Was this translation helpful? Give feedback.
All reactions