wobsoriano / vue-wrap-balancer

Simple Vue Component That Makes Titles More Readable.
https://vue-wrap-balancer.vercel.app
MIT License
111 stars 1 forks source link

Typescript Error #11

Closed insub closed 3 weeks ago

insub commented 2 months ago

Typescript 5.4.5 / 5.5.2 Nuxt 3.12.4 Vue 3.2

<script setup lang="ts">
import WrapBalancer from 'vue-wrap-balancer'
</script>

Get error:

Could not find a declaration file for module 'vue-wrap-balancer'. '/node_modules/.pnpm/vue-wrap-balancer@1.1.3_vue@3.4.33_typescript@5.4.5_/node_modules/vue-wrap-balancer/dist/index.mjs' implicitly has an 'any' type.
  There are types at '/node_modules/vue-wrap-balancer/dist/index.d.ts', but this result could not be resolved when respecting package.json "exports". The 'vue-wrap-balancer' library may need to update its package.json or typings.ts-plugin(7016)
wobsoriano commented 3 weeks ago

Hi, please update to 1.2.0 and do a named import instead. Thanks!

Feel free to reopen