Replies: 1 comment 4 replies
-
I did a poc some weeks ago which did what you are doing in a monorepo. I used the next-transpile-modules library and it worked fine. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
I created a component library with
@vanilla-extract/css
and React. Now I want to use this in a Next.js app and getting the error:I've configured Next.js to work with Vanilla-Extract as described on the website. When I use a Vanilla-Extract CSS file directly inside the Next.js app, it works. But when I try to use my components from the component library, I'm getting this error.
How do I have to integrate Vanilla-Extract into the component library? Currently, it's integrated as
peerDependencies
anddevDependencies
.Any ideas? Thanks in advance for your help!
Beta Was this translation helpful? Give feedback.
All reactions