Development mode works fine (yarn dev), but production build (yarn build) throws:
file:///.../nuxt3-app/.output/server/chunks/index.mjs:9857
return (compileCache[cacheKey] = Function('require', code)(commonjsRequire));
^
TypeError: Cannot convert object to primitive value
at Function (<anonymous>)
at ssrCompile (file:///.../nuxt3-app/.output/server/chunks/index.mjs:9857:38)
at renderComponentSubTree (file:///.../nuxt3-app/.output/server/chunks/index.mjs:9948:30)
at renderComponentVNode (file:///.../nuxt3-app/.output/server/chunks/index.mjs:9934:16)
at renderVNode (file:///.../nuxt3-app/.output/server/chunks/index.mjs:10030:22)
at renderComponentSubTree (file:///.../nuxt3-app/.output/server/chunks/index.mjs:9995:13)
at renderComponentVNode (file:///.../nuxt3-app/.output/server/chunks/index.mjs:9934:16)
at Object.ssrRenderComponent (file:///.../nuxt3-app/.output/server/chunks/index.mjs:10349:12)
at _sfc_ssrRender (file:///.../nuxt3-app/.output/server/chunks/app/server.mjs:3896:32)
at renderComponentSubTree (file:///.../nuxt3-app/.output/server/chunks/index.mjs:9989:13)
error Command failed with exit code 1.
Hi, the package doesn't seem to work with latest Nuxt3 (
3.0.0-27500163.51ae426
).With minimal application (
app.vue
):nuxt.config.ts
:Development mode works fine (
yarn dev
), but production build (yarn build
) throws: