Styles are not loaded when using standalone #68064
Unanswered
kamolovd
asked this question in
App Router
Replies: 1 comment
-
You shouldn't need to configure Webpack. Next.js already handles this automatically. With
Your |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
I use standalone for the nextjs project to load the standalone folder into the server. But the styles disappear after the build and launch of server.js in the .next/standalone path. After I added this config and now when building I get an error

Error
Module parse failed: Unexpected token (1:0)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
Import trace for requested module:
./app/styles/globals.css
./app/layout.tsx
Beta Was this translation helpful? Give feedback.
All reactions