@prismicio/react/dist/index.js:1 seems to be an ES Module but shipped in a CommonJS package

Hi @Blooon, I tried your tsconfig.json on a fresh Vite + Vitest project and still did not see the same issue.

Could you try the solution shared here? PrismicProvider - Cannot use import statement outside a module - #6 by angeloashmore

Those instructions essentially turn @prismicio/react into an ESM-first package, which could resolve the issue. It would be a temporary fix until we update @prismicio/react.