Recently, I embarked on a new project with Vue CLI and Vite, utilizing Vue version 3.3.4 alongside TypeScript.
In the process, I attempted to incorporate the vue-concise-slider into one of my components. You can find it here: https://github.com/warpcgd/vue-concise-slider
However, upon using
import { slider, slideritem } from 'vue-concise-slider'
, I encountered an error stating 'no declaration file found'. To resolve this, I created a directory named types/vue-concise-slider and added an index.d.ts file within it containing the line declare module 'vue-concise-slider';
. This resolved the error in the Vue file, but now I'm seeing 't2._self' is undefined in the console. Below is a snippet of my ts.config:
{
"extends": "@tsconfig/node18/tsconfig.json",
"include": [
"vite.config.*",
"vitest.config.*",
"cypress.config.*",
"nightwatch.conf.*",
"playwright.config.*"
],
"compilerOptions": {
"composite": true,
"module": "ESNext",
"esModuleInterop": true,
"types": ["node"],
"noImplicitAny": false,
"allowJs": true
}
}