Subscribe on changes!

_createVNode is not defined

avatar
Dec 3rd 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)