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

TypeError: Invalid value used as weak map key with simple image tag on first page load - hot replace works #14727

Closed
mklueh opened this issue Aug 27, 2022 · 4 comments

Comments

@mklueh
Copy link

mklueh commented Aug 27, 2022

Environment

Nuxt project info: 11:34:46


  • Operating System: Linux
  • Node Version: v16.16.0
  • Nuxt Version: 3.0.0-rc.8-27692155.9db2229
  • Package Manager: yarn@3.2.3
  • Builder: vite
  • User Config: -
  • Runtime Modules: -
  • Build Modules: -

Reproduction

<template>
  <nuxt-link to="/">
    <img width="28" height="28" src="/logo.svg"/>
  </nuxt-link>
</template>

Describe the bug

I'm running into this issue on the first page load. When I remove the image line

<template>
  <nuxt-link to="/">
   <!-- <img width="28" height="28" src="/logo.svg"/>-->
  </nuxt-link>
</template>

it loads, and when I re-insert the image line the icon will even show up on the loaded page

Additional context

No response

Logs

[Vue warn]: Invalid vnode type when creating vnode: undefined.
[nitro] [dev] [unhandledRejection] TypeError: Invalid value used as weak map key
    at WeakMap.set (<anonymous>)
    at normalizePropsOptions (/home/user/workspace/my-app/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:3966:11)
    at createComponentInstance (/home/user/workspace/my-app/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:6957:23)
    at renderComponentVNode (/home/user/workspace/my-app/node_modules/@vue/server-renderer/dist/server-renderer.cjs.js:171:22)
    at Module.ssrRenderComponent (/home/user/workspace/my-app/node_modules/@vue/server-renderer/dist/server-renderer.cjs.js:608:12)
    at _sfc_ssrRender (/home/user/workspace/my-app/apps/blogs/overflowed.dev/layouts/DefaultLayout.vue:25:31)
    at renderComponentSubTree (/home/user/workspace/my-app/node_modules/@vue/server-renderer/dist/server-renderer.cjs.js:253:13)
    at renderComponentVNode (/home/user/workspace/my-app/node_modules/@vue/server-renderer/dist/server-renderer.cjs.js:188:16)
    at renderVNode (/home/user/workspace/my-app/node_modules/@vue/server-renderer/dist/server-renderer.cjs.js:295:22)
    at renderComponentSubTree (/home/user/workspace/my-app/node_modules/@vue/server-renderer/dist/server-renderer.cjs.js:259:13)

@516310460
Copy link
Contributor

Would you please prodive a reproduction?

@mklueh
Copy link
Author

mklueh commented Aug 27, 2022

Would you please prodive a reproduction?

I can try to build one when I have time, likely tomorrow.

In addition I can give you the hint that this component is included in the Na bar component, which is itself included in the layout, if that makes any difference

@516310460
Copy link
Contributor

Build one when you have time

@danielroe danielroe closed this as not planned Won't fix, can't repro, duplicate, stale Sep 20, 2022
@mklueh
Copy link
Author

mklueh commented Sep 20, 2022

Totally forgot this issue. But it was somehow gone and did not occur again

@danielroe danielroe added the 3.x label Jan 19, 2023
@danielroe danielroe transferred this issue from nuxt/framework Jan 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants