Next.js Discord

Discord Forum

Build breaks after upgrading to v16 with error 'styled-jsx' not found.

Unanswered
American black bear posted this in #help-forum
Open in Discord
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 found

I'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?

0 Replies