-
Notifications
You must be signed in to change notification settings - Fork 326
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[bug]: NextJS build fails with withUt
tailwind config function
#1070
Comments
yea currently What are you doing that requires importing the tailwind file in a client component? |
We import the tailwind config in our typescript code (client side), for example to reuse the different breakpoint definitions in a |
so you could declare a client-safe config in we might be able to do some conditional exports to make the withUt wrapper a noop in non-node environments 🤔 |
Thanks for the suggestion, that worked! The |
Can you try out the canary from here: #1072 |
@jokklan - Have you had a chance to try out the canary that Julius linked?
|
Just tested and it works |
Provide environment information
Describe the bug
NextJS fails when building (
next build
) or starting the dev server (next dev
).The following error log is from the dev server:
Here is the content of each file:
./src/lib/tailwind.ts
./tailwind.config.ts
Link to reproduction
https://stackblitz.com/edit/github-vnrqpe?file=src%2Fapp%2Fpage.tsx
To reproduce
Importing the tailwind config wrapped with
withUt
will fail in build.Additional information
No response
👨👧👦 Contributing
Code of Conduct
The text was updated successfully, but these errors were encountered: