Default Settings (non-typescript): VS Code reports several issues - ts(2440), ts(2307), and ts(2351) #4436
Labels
needs team repro
We acknowledged your report and will soon try to reproduce it
Version
3.10.0
Reproduction link
https://github.com/torueck/vue-cli-issues-in-vscode
Environment info
Steps to reproduce
vue create vue-default
),What is expected?
No errors are reported
What is actually happening?
For ./src/main.js several issues are reported by VS Code:
{
"resource": "/d:/WebDev/Vue_3/vue-default/src/main.js",
"owner": "typescript",
"code": "2440",
"severity": 8,
"message": "Import declaration conflicts with local declaration of 'Vue'.",
"source": "ts",
"startLineNumber": 1,
"startColumn": 8,
"endLineNumber": 1,
"endColumn": 11
}
{
"resource": "/d:/WebDev/Vue_3/vue-default/src/main.js",
"owner": "typescript",
"code": "2307",
"severity": 8,
"message": "Cannot find module './App.vue'.",
"source": "ts",
"startLineNumber": 2,
"startColumn": 17,
"endLineNumber": 2,
"endColumn": 28
}
{
"resource": "/d:/WebDev/Vue_3/vue-default/src/main.js",
"owner": "typescript",
"code": "2351",
"severity": 8,
"message": "Cannot use 'new' with an expression whose type lacks a call or construct signature.",
"source": "ts",
"startLineNumber": 6,
"startColumn": 1,
"endLineNumber": 8,
"endColumn": 3
}
If I create the vue project with including typescript support, these errors do not occur.
The text was updated successfully, but these errors were encountered: