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

_createVNode is not defined #2718

Closed
ap32 opened this issue Dec 3, 2020 · 0 comments
Closed

_createVNode is not defined #2718

ap32 opened this issue Dec 3, 2020 · 0 comments

Comments

@ap32
Copy link

ap32 commented Dec 3, 2020

Version

3.0.4

Reproduction link

https://codesandbox.io/s/hardcore-fog-lbm32?file=/src/App.vue

Steps to reproduce

Edit App.vue template part to this:

<template>
  <svg width="12" height="15" viewBox="0 0 6 10">
    <g v-for="(_0, x) in 2" :key="x">
      <circle
        v-for="(_1, y) in 3"
        :key="y"
        r="1"
        :cx="1 + 4 * x"
        :cy="1 + 4 * y"
        fill="currentColor"
      />
    </g>
  </svg>
</template>

What is expected?

Rendering without errors.

What is actually happening?

ReferenceError _createVNode is not defined. For some reason vue doesn't import createVNode.


It will work if you add any element somewhere inside template (at least one of the elements must have at least two children)

@github-actions github-actions bot locked and limited conversation to collaborators Oct 30, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant