-
Notifications
You must be signed in to change notification settings - Fork 27.3k
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
[turbopack]: importing tailwind/tailwind.css
fails with serverComponentsExternalPackages
error
#64837
Comments
tailwind/tailwind.css
fails with serverComponentsExtenalPackages
errortailwind/tailwind.css
fails with serverComponentsExternalPackages
error
This comment has been minimized.
This comment has been minimized.
You probably don't want to import Currently, the best way is to use it through PostCSS: https://tailwindcss.com/docs/installation/using-postcss |
i don't think that's true - this has been working perfectly fine for me. you still have to set up the postcss plugin, but it avoids having a separate css file in the project with just the three EDIT: this is the file content: https://unpkg.com/browse/tailwindcss@3.4.3/tailwind.css |
Ah, you're right, seems we need to add an exception for CSS files as externals. |
This comment has been minimized.
This comment has been minimized.
waiting for vercel/next.js#64837 to get released and fix issues with tailwind
This closed issue has been automatically locked because it had no new activity for 2 weeks. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Link to the code that reproduces this issue
https://github.com/stefanprobst/issue-turbopack-tailwind
To Reproduce
pnpm install
pnpm run dev
(next dev --turbo
)Current vs. Expected behavior
current:
importing
tailwind/tailwind.css
fails with the following error message when runningnext dev --turbo
:expected:
importing
tailwind/tailwind.css
should work, like it does with webpack (runningpnpm next dev
without--turbo
works fine).Provide environment information
Operating System: Platform: linux Arch: x64 Version: #18~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Feb 7 11:40:03 UTC 2 Available memory (MB): 32032 Available CPU cores: 4 Binaries: Node: 20.12.2 npm: 10.5.0 Yarn: 1.22.19 pnpm: 8.15.5 Relevant Packages: next: 14.3.0-canary.14 // Latest available version is detected (14.3.0-canary.14). eslint-config-next: N/A react: 18.2.0 react-dom: 18.2.0 typescript: 5.4.5 Next.js Config: output: N/A
Which area(s) are affected? (Select all that apply)
Turbopack
Which stage(s) are affected? (Select all that apply)
next dev (local)
Additional context
No response
PACK-3013
The text was updated successfully, but these errors were encountered: