Skip to content

createElementVNode is not a function with @vue/cli #117

Closed as not planned
Closed as not planned
@koooge

Description

@koooge

Hi there,

I'm struggling to make a lib with @vue/cli and stuck because @vue/cli looks like a minor choice for vue-demi.

vue.config.js:

module.exports = {
  configureWebpack: {
    externals: {
      'vue-demi': 'vue-demi',
    },
  },
};

user outputs the error (vue 2.6.14):

TypeError: (0 , external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode) is not a function

It does not seem that there is such a method createElementVNode in Vue2. Is this an issue only with @vue/cli?

env: vue-demi 0.12.1, vue 3.2.22, @vue/cli 5.0.0-rc.0

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