-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
tailwindcss/resolveConfig causing an error with version 1.9.0 #2547
Comments
Same here. Next has build-in CSS support, that allows 3rd party global CSS imports only from _app.js. See here: https://nextjs.org/docs/basic-features/built-in-css-support#import-styles-from-node_modules The workaround is to use legacy |
Weird, we don't actually import any CSS files so I'm not sure why this would happen, and nothing around this has changed between 1.8 and 1.9. Asked the Next team for some help tracing it down. You can see here we're not actually importing any CSS, just resolving the path to the file on the filesystem: https://github.com/tailwindlabs/tailwindcss/blob/master/src/plugins/preflight.js#L6 Though I do wonder why this code is even running at all when calling |
Getting the same error after upgrading to 1.9 - really hard to pinpoint the source |
Will be fixed in a couple minutes after CI runs have no fear :) |
Fixed in v1.9.1 👍🏻 |
Describe the problem:
After upgrading to tailwindcss 1.9.0 Next.js began throwing an error during development:
I was able to narrow it down to components that use tailwindcss/resolveConfig to access the theme.
If I roll back to tailwindcss 1.8.13 everything works as expected.
Link to a minimal reproduction:
https://github.com/haydencleary/tailwind-issue
The text was updated successfully, but these errors were encountered: