Skip to content

Adding property to 'import Vue from 'vue'' import makes 'Vue' no longer constructible  #38218

@deguich

Description

@deguich

TS Template added by @mjbvz

TypeScript Version: 3.9.0-dev.20200427

Search Terms

  • Vue
  • constructor
  • javascript

  • VSCode Version: 1.44.2
  • OS Version: Win10

Does this issue occur when all extensions are disabled?: Yes

Intellisense broken after added property.

Steps to Reproduce:

In a test directory :

yarn init -y
yarn add vue

Create a javascript file index.js :

import Vue from 'vue';
Vue.config.productionTip = true;
const vm = new Vue("");

Intellisense work :

index jsOK

Intellisense broken :

index jsNOK


A second test with another module (dayjs)

Intellisense work :

dayjs_test_OK

Intellisense broken :

dayjs_test


A third test with a function constructor in index.js

It always works, test property exists.

plain_object

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScript

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions