Skip to content

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

Closed

Description

@deguich

TS Template added by Matt Bierner (@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

Activity

  1. changed the title [-]Javascript Intellisense broken[/-] [+]Adding property to 'import Vue from 'vue'' import makes 'Vue' no longer constructible [/+] on Apr 27, 2020
  2. deleted a comment from vscodebot on Apr 27, 2020
  3. removed their assignment
    on Apr 27, 2020
  4. mjbvz commented on Apr 27, 2020

    @mjbvz

    The error here is:

    Screen Shot 2020-04-27 at 3 06 55 PM

  5. locked as resolved and limited conversation to collaborators on Oct 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

BugA bug in TypeScript

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions