-
Notifications
You must be signed in to change notification settings - Fork 32
Closed
Description
Could not find a declaration file for module '@highlightjs/vue-plugin'. 'c:/Users/misha/.mi/vite-ts-template/node_modules/@highlightjs/vue-plugin/dist/highlightjs-vue.min.js' implicitly has an 'any' type.
Try npm i --save-dev @types/highlightjs__vue-plugin
if it exists or add a new declaration (.d.ts) file containing declare module '@highlightjs/vue-plugin';
ts(7016)
tsconfig.sjon:
{
"compilerOptions": {
"target": "esnext",
"module": "esnext",
"moduleResolution": "node",
"strict": true,
"jsx": "preserve",
"sourceMap": true,
"resolveJsonModule": true,
"esModuleInterop": true,
"lib": ["esnext", "dom"],
"types": [
"vite/client",
"@intlify/vite-plugin-vue-i18n/client"
],
"paths": {
"@/*": ["./src/*"]
}
},
"include": ["./src/**/*.ts", "./src/**/*.d.ts", "./src/**/*.tsx", "./src/**/*.vue"]
}
package.json:
"dependencies": {
"@highlightjs/vue-plugin": "^2.0.0",
"@vueuse/core": "^4.11.1",
"@vueuse/head": "^0.5.1",
"axios": "^0.21.1",
"highlight.js": "^11.0.0",
"vue": "^3.0.11",
"vue-i18n": "^9.1.6",
"vue-router": "^4.0.8"
},
"devDependencies": {
"@iconify/json": "^1.1.348",
"@intlify/vite-plugin-vue-i18n": "^2.1.2",
"@types/node": "^15.3.1",
"@typescript-eslint/eslint-plugin": "^4.25.0",
"@typescript-eslint/parser": "^4.25.0",
"@vitejs/plugin-vue": "^1.2.2",
"@vue/compiler-sfc": "^3.0.11",
"@vue/eslint-config-typescript": "^7.0.0",
"eslint": "^7.27.0",
"eslint-plugin-vue": "^7.9.0",
"sass": "^1.32.12",
"typescript": "^4.2.4",
"vite": "^2.3.4",
"vite-plugin-components": "^0.10.2",
"vite-plugin-icons": "^0.5.1",
"vite-plugin-windicss": "^0.16.0"
}
Metadata
Metadata
Assignees
Labels
No labels