Working with Typescript and Vue Cli in VS Code, I encountered a "definition missing warning" at this particular line:
import { setupCalendar, DatePicker } from "v-calendar";
The issue states: Could not find a declaration file for module 'v-calendar'.
Although this error does impact tsc compilation, it's persistently displayed in VS Code on both the code and navigation bar.
https://i.sstatic.net/WUSIr.png
How can I resolve this error to return to a status of "no error"?
PS: The imported module v-calendar
lacks a definition as it is a third-party dependency.
PS: Below is my "tsconfig.json"
{
"compilerOptions": {
"target": "es5",
"module": "esnext",
"strict": true,
"jsx": "preserve",
"importHelpers": true,
"moduleResolution": "node",
"experimentalDecorators": true,
"esModuleInterop": true,
"strictPropertyInitialization": false,
"strictNullChecks": false,
"allowSyntheticDefaultImports": true,
"sourceMap": true,
"baseUrl": ".",
"types": ["webpack-env", "mocha", "chai"],
"paths": {
"@/*": ["src/*"]
},
"lib": ["esnext", "dom", "dom.iterable", "scripthost"]
},
"include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.vue", "tests/**/*.ts", "tests/**/*.tsx"],
"exclude": ["node_modules"]
}