Standalone NextJS16 cannot load shadcn-css #9563
utsavo-afk
started this conversation in
General
Replies: 0 comments
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.
-
Here is my dockerfile
Here is my globals.css file
When i run bun run build and then do bun run .next/standalone/server.js
When i do docker build -f Dockerfile -t test-build .
7.382 Error: Turbopack build failed with 2 errors:
7.382 ./app/globals.css:3:2
7.382 Module not found: Can't resolve '@shadcn/tailwind.css'
7.382 1 | @import 'tailwindcss';
7.382 2 | @import '@tw-animate.css';
7.382 > 3 | @import '@shadcn/tailwind.css';
And if i change it to importing from node_modules itself the styles are missing in the built image when i run it the shadcn styles are not applied
any help will be appreciated, What Am I Doing Wrong X_X PLs help
Beta Was this translation helpful? Give feedback.
All reactions