Redwan
CDCloudflare Developers
•Created by Redwan on 3/26/2025 in #workers-help
Tailwind CSS v4 Module Resolution Error in Next.js/Cloudflare Deployment
the error in logs
? Would you like to continue?
🤖 Using fallback value in non-interactive context: yes
✘ [ERROR] Build failed with 1 error:
✘ [ERROR] Could not resolve "tailwindcss"
src/app/globals.css:1:8:
1 │ @import "tailwindcss";
╵ ~~~~~~~~~~~~~
The path "." is not currently exported by package "tailwindcss":
node_modules/tailwindcss/package.json:13:13:
13 │ "exports": {
╵ ^
None of the conditions in the package definition ("types", "style", "require", "import") match any of the currently active conditions ("browser", "default", "worker", "workerd"):
node_modules/tailwindcss/package.json:14:9:
14 │ ".": {
╵ ^
Consider enabling the "style" condition if this package expects it to be enabled. You can use "conditions: ['style']" to do that:
node_modules/tailwindcss/package.json:16:6:
16 │ "style": "./index.css",
╵ ~~~~~~~
? Would you like to continue?
🤖 Using fallback value in non-interactive context: yes
✘ [ERROR] Build failed with 1 error:
✘ [ERROR] Could not resolve "tailwindcss"
src/app/globals.css:1:8:
1 │ @import "tailwindcss";
╵ ~~~~~~~~~~~~~
The path "." is not currently exported by package "tailwindcss":
node_modules/tailwindcss/package.json:13:13:
13 │ "exports": {
╵ ^
None of the conditions in the package definition ("types", "style", "require", "import") match any of the currently active conditions ("browser", "default", "worker", "workerd"):
node_modules/tailwindcss/package.json:14:9:
14 │ ".": {
╵ ^
Consider enabling the "style" condition if this package expects it to be enabled. You can use "conditions: ['style']" to do that:
node_modules/tailwindcss/package.json:16:6:
16 │ "style": "./index.css",
╵ ~~~~~~~
2 replies