Module parse error with @prismicio/next

Are you using the App Router or Pages Router?

I’d suggest checking out our Preview Troubleshooting Guide especially when working with @prismicio/next and the newer Next.js versions.