Skip to content

_createVNode is not defined #2718

@ap32

Description

@ap32

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions