Closed Evanion closed 1 year ago
Hello 👋
Are you using the new app/
dir feature?
No, the next.config.js
in the post doesn't contain the config for it.
We would like to use the app dir, but it's borked when running Docker for some reason. Waiting for a response from vercel on that.
I solved this by using the new built in experimental.transpilePackage
config in next@13
Are you trying to transpile a local package or an npm package? Local Turborepo package.
Describe the bug When running
next build
in CI pipeline, it throws an error. I'm also able to replicate this locally.We are using mui as the basis of our UI library, so we don't have any css files in our project as everything is styled components
To Reproduce Steps to reproduce the behavior (a reproduction is even better): I have no idea, this first appeared on our GH Actions CI pipeline.
Expected behavior A clear and concise description of what you expected to happen. next build to complete correctly
Setup
next-transpile-modules
version: 10 & 9npm
/yarn
version: yarn 1.22 & 1.18Debug logs (optional) https://app.warp.dev/block/QTtMEumacG8u4sSSTpUd0R
Additional context
I have tried:
next.config.js
The error occurs in code relating to the webpack css loader as far as I can see: