Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
robthepaper opened this issue Aug 16, 2022 · 1 comment
Open

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

robthepaper opened this issue Aug 16, 2022 · 1 comment

Comments

@robthepaper
Copy link

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
Copy link
Author

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="mdi-light:home" width="48"/> <Icon icon="ion:ios-cart" width="48"/> <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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant