Closed jca41 closed 3 years ago
Hello, there is not too much I can't help there – the binary is missing, so you need to figure out why.
what happens under Next 12.0.1?
Hello, there is not too much I can't help there – the binary is missing, so you need to figure out why.
what happens under Next 12.0.1?
It works fine with Next.js 11
Hmm probably It's a thing related to webpack since Next.js 12:
After making webpack 5 the default in Next.js 11, we've now officially removed webpack 4. We've worked closely with the community to ensure a smooth transition to webpack 5.
Thanks, I will get a minimal reproduction and ask the Vercel guys
Prerequisites
package.json
.Subject of the issue
After upgrading to Nextjs.12 (
12.0.2
) I'm now getting the error below when deploying to Vercel. I'm using metascraper in a API route (node). I've tried both yarn and npm by pushing a lock file, but the issue still persists.I've seen the error locally intermittently but it fixes itself after removing
node_modules
andnpm i
. When deployed to Vercel it always fails. Vercel is using node 14.x apparently.Steps to reproduce
Deploy to an API route to Vercel with Next.js 12.
Expected behaviour
Should require re2.
Actual behaviour
We get a
Error: Cannot find module './build/Release/re2'
error.