Vercel build error with Next.js.

Hi i’m getting a vercel build error nextjs - not sure where to start debugging this. Oddly enough it works fine building locally

what’s the project id?

rCLMVBFoWZ9ZZdaRyfVPoo

looks like some code component metadata got updated (removing the importPath?) If so, you should be able to fix this by just publishing your project to pick up those changes

ok i published again - now getting:

PLASMIC: Encountered error when pre-rendering ProductPage: Error: invariant expected app router to be mounted

we talk about this here: https://docs.plasmic.app/learn/data-code-components/#how-extractplasmicquerydata-works

basically useRouter() doesn’t work during prepass when extracting query data, so your code components using useRouter() need to deal with that. I’ll add more to the documentation

ok thanks i’ll inspect