Type error inside @prismicio/helpers from node_modules during the build process in next.js

Hi!

Im getting this error when trying to run "next build". My project is working fine. Just the build command that is facing this error inside @prismicio/helpers folder in node_modules. Its not an error from my code, its from the code inside node_modules.

Thanks, good afternoon!

Hi @rafapignataro

I've got some updates from our dev team, and one way to fix this issue is to upgrade your project’s version of TypeScript to at least v4.7 .

There are more details in this GitHub issue here

Also, we exploring ways we can fix the underlying issue, but nothing is concrete yet.