Weird RollupError on running `nuxi build`
Hey everyone! Im trying to build a Nuxt 3 / Prismic app with the
cloudflare_pages
preset enabled (I also tried other cloudflare presets). The build runs fine, but after the prerendering process I get this error:
When building via nuxi generate
, the build finishes successfully, but when testing it with wrangler pages dev /dist
, the content of the routes doesnt seem to change.
I've found this (https://github.com/nuxt/nuxt/issues/15057) issue on Github, but I can see where this error is related to my project..
Help is much appreciated 🙏GitHub
Unexpected character '�' when generating build · Issue #15057 · n...
Environment Operating System: Windows_NT Node Version: v16.17.0 Nuxt Version: 3.0.0-rc.11 Nitro Version: 0.5.4 Package Manager: [email protected] Builder: vite Reproduction I Tried to reproduce but looks ...
5 Replies
Traced the issue down - it was caused by a package called
vue-email
hva you tried adding
to your nuxt.config? 🙂 or maybe with the vue-email
It was indeed because vue-email wasnt configured for ssr. I just disabled it for now until i properly integrated it 🙂
okay 🙂 i've had similar issues with ssr, and the transpile could fix some errors during ssr
did this ever get fixed?
One thing I saw was the use of import-string odule which is causing the pnpapi error