[Vuejs]-How to declare types to use vue-simple-svg in typescript vue3

0👍

That library is written for Vue 2, so you can’t use it in a Vue 3 project (unless you use Vue’s migration build).

Also, the library has no typings defined for it, so you’ll encounter the error you observed. Follow the suggestion from the error message (add a new declaration (.d.ts) file), and declare your own typings for it by creating this file in your project root:

// src/vue-simple-svg.d.ts
declare module 'vue-simple-svg'

Leave a comment