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'
- [Vuejs]-VueJS and Lodash: How to get an array of objects that only contain a certain key string?
- [Vuejs]-How to display specific row in vuejs api
Source:stackexchange.com