Hello, I am trying to set up Nuxt 3 project with Prismic.
I have created Nuxt 3 project following the official documentation. This is all good.
After setting up my Nuxt 3 project I have tried to add Prismic following the official documentation.
After adding Prismic I get this error in the console:
Uncaught SyntaxError: The requested module '/_nuxt/node_modules/escape-html/index.js?v=0aa5fa94' does not provide an export named 'default'
I have tried tinkering with versions of Nuxt and Prismic but to no avail. The whole project so far is almost barebones. There are dependencies for styles and SVG only.
I've reached out to our team about this, but they weren't able to reproduce the error. So we'll need more details about your setup (node version, package.json , nuxt.config.ts , etc.) and/or a reproduction project.
Alright, so the team thinks it's an issue within Nuxt/Vite transpile pipeline that cannot be quick-fixed on our end (We tried explicitely asking Nuxt to transpile escape-html without success), few things:
Error seems non-blocking, so it should not block you in your development process.
The error fades away as soon as they start using Prismic features with "usePrismic()" (We guess Nuxt/Vite finally picks up they need to transpile escape-html at that point)
But tl;dr; ignore the error and start using Prismic, fair reminder that Nuxt 3 is still not fully stable.