Netlify deploy error with "styled-jsx/style" module

This function has crashed
An unhandled error in the function code triggered the following message:
Runtime.ImportModuleError - Error: Cannot find module ‘styled-jsx/style’ Require stack: - /var/task/node_modules/next/dist/server/require-hook.js - /var/task/node_modules/next/dist/server/next-server.js - /var/task/.netlify/functions-internal/___netlify-odb-handler/___netlify-odb-handler.js - /var/task/___netlify-odb-handler.js - /var/runtime/index.mjs

This occured in visiting the site URL with a new deploy from Plasmic Visual Builder. Previous site had been fine, but somewhere along the line, I no longer had it in Plasmic! The github repo being used for deployment doesn’t appear as linked in any projects. It wasn’t displaying properly on mobile at all, so in trying to work on this, I made created a new repo with the same build in Plasmic, but now the site won’t load at all.

Thank you!

Using Netlify for deploy

This is weird, because I believe Plasmic does not use styled-jsx. Is this a new Next.js app? How did you setup it? Are you using the Headless API (loader) or codegen?

Neither. This was just build in the Visual Studio. I simply published it, and this is what I’m getting… Maybe it’s a Netlify issue, but I’m not sure where to look, as this didn’t happen last time, and I’m simply deploying the repo from github that Plasmic published the site to.

One oddity I noticed in github is that the original repo was noted as TS, and the newer one noted as css (you know how github tends to list the most-used language for each repo). Before I go to Netlify about this, if there’s any ideas you have, please share. Thanks so much, Tiago!

I just re-linked it the repo it was using before, and it deploys fine again… I don’t know why I can no longer access this build in Plasmic, though…