jonathanpmartins / v-money3

Vue3 currency input/directive mask
MIT License
103 stars 27 forks source link

Fix typescript error TS7016: Could not find a declaration file for module 'v-money3'. #84

Closed christhofer closed 10 months ago

christhofer commented 1 year ago

I got this error when installing v-money3 on a new Vue project created with npm create vue@latest.

error TS7016: Could not find a declaration file for module 'v-money3'. '{project_path}/node_modules/v-money3/dist/v-money3.mjs' implicitly has an 'any' type.
  There are types at '{project_path}/node_modules/v-money3/dist/index.d.ts', but this result could not be resolved when respecting package.json "exports". The 'v-money3' library may need to update its package.json or typings.

2023-08-04-0830-Code_FKNtUtCjIR

I applied the solution provided by cmdruid here.

When I applied this fix on node_modules/v-money3/package.json and re-run npm run type-check, the error is gone.

WiRight commented 11 months ago

any update?

jonathanpmartins commented 9 months ago

Sorry for the delay, I took a sabatical! This was released on 3.24.1