Skip to content

Vue.extend doesn't work #629

@dxvladislavvolkov

Description

@dxvladislavvolkov

Version

3.0.0-alpha.1

Reproduction link

https://github.com/dxvladislavvolkov/vue_3_bug

Steps to reproduce

  1. clone repo
  2. run npm i
  3. run npm run dev

I try to use this code:
import Vue from "vue";
.....

const BaseComponent: VueConstructor<IBaseComponent> = Vue.extend({

    inheritAttrs: false,

    data() {
        .....
    },

and get an error "TypeError: Vue.extend is not a function"

What is expected?

I expect the function to work

What is actually happening?

I get the error "TypeError: Vue.extend is not a function"

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