Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
deguich opened this issue Apr 24, 2020 · 1 comment · Fixed by #39558
Closed
Assignees
Labels
Bug A bug in TypeScript

Comments

@deguich
Copy link

deguich commented Apr 24, 2020

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

@jrieken jrieken assigned mjbvz and unassigned jrieken Apr 24, 2020
@mjbvz mjbvz transferred this issue from microsoft/vscode Apr 27, 2020
@mjbvz mjbvz changed the title Javascript Intellisense broken Adding property to 'import Vue from 'vue'' import makes 'Vue' no longer constructible Apr 27, 2020
@microsoft microsoft deleted a comment from vscodebot bot Apr 27, 2020
@mjbvz mjbvz removed their assignment Apr 27, 2020
@mjbvz
Copy link
Contributor

mjbvz commented Apr 27, 2020

The error here is:

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug A bug in TypeScript
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants