Build breaks after upgrading to v16 with error 'styled-jsx' not found.
Answered
American black bear posted this in #help-forum
American black bearOP
ERROR: failed to build: failed to solve: failed to compute cache key: failed to calculate checksum of ref i6kzyhu4wqwqesbbvxfxbh07w::pqlqgrj1g8vppf3c9nz2ng1ft: "/app/apps/my-app/.next/standalone/node_modules/styled-jsx": not foundI'm building and deploying my apps on railway.com. The only thing I've changed is upgrading to v16 and my build breaks on styled-jsx which is a dependency of next. Has anyone encountered this before?
I've tried explicitly adding styled-jsx as a dependency in my root package and my app packages but that makes no difference. I'm not sure what is causing this issue. Does anyone have any clues?
Answered by American black bear
Ok, when removing
output: 'standalone', from my next.config.ts the builds succeed.1 Reply
American black bearOP
Ok, when removing
output: 'standalone', from my next.config.ts the builds succeed.Answer