niklashaug / vue-carbonbadge

Vue component for the Website Carbon Badge compatible with Vue 3
4 stars 0 forks source link

Error when using with TypeScript #5

Open pascalwengerter opened 2 months ago

pascalwengerter commented 2 months ago

Hey there! Just added this to my Nuxt3 project, seems to work (as in there's a badge visible).

However, the IDE complains with Could not find a declaration file for module 'vue-carbonbadge'. '<project-path>/node_modules/.pnpm/vue-carbonbadge@2.0.0_typescript@5.3.3/node_modules/vue-carbonbadge/dist/vue-carbonbadge.js' implicitly has an 'any' type. There are types at '<project-path>/node_modules/vue-carbonbadge/dist/index.d.ts', but this result could not be resolved when respecting package.json "exports". The 'vue-carbonbadge' library may need to update its package.json or typings.

Any chance to get this resolved upstream? :)

niklashaug commented 2 months ago

Hey @pascalwengerter! I also came across that warning but did not have the time to have a look into it yet. If you want to contribute, feel free to open a PR :)