ctwhome / top-nuxt3

Full stack Nuxt 3 Template starter with Supabase and Tailwindcss
https://top-nuxt3.netlify.app
115 stars 17 forks source link

Error when building : Invalid value used as weak map key #16

Open robthepaper opened 2 years ago

robthepaper commented 2 years ago

Hi, has anyone encounter this error? used pnpm install then pnpm build and pnpm start

Listening on http://localhost:3000/ Invalid value used as weak map key at WeakMap.set (<anonymous>) at normalizePropsOptions (file:///D:/NUXT3/top-nuxt3/.output/server/chunks/index.mjs:4583:11) at createComponentInstance (file:///D:/NUXT3/top-nuxt3/.output/server/chunks/index.mjs:7411:23) at renderComponentVNode (file:///D:/NUXT3/top-nuxt3/.output/server/chunks/index.mjs:9840:22) at Object.ssrRenderComponent (file:///D:/NUXT3/top-nuxt3/.output/server/chunks/index.mjs:10272:12) at file:///D:/NUXT3/top-nuxt3/.output/server/chunks/server2.mjs:6552:36 at renderComponentSubTree (file:///D:/NUXT3/top-nuxt3/.output/server/chunks/index.mjs:9912:13) at renderComponentVNode (file:///D:/NUXT3/top-nuxt3/.output/server/chunks/index.mjs:9857:16) at Object.ssrRenderComponent (file:///D:/NUXT3/top-nuxt3/.output/server/chunks/index.mjs:10272:12) at file:///D:/NUXT3/top-nuxt3/.output/server/chunks/server2.mjs:6687:38

robthepaper commented 2 years ago

ok, so I went in dev mode

then found what breaks it : [Vue warn]: Failed to resolve component: icon If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement. Invalid value used as weak map key

if I removed in index.vue `

        <Icon icon="noto:anchor" width="48"/>
        <Icon icon="fxemoji:alien" width="48"/>`

as well as all icon components in UserLoginForm.vue

the error is gone.

Can someone help me solve this issue ?