Vannsl / vue-3-sanitize

HTML sanitizer for Vue.js 3 apps
MIT License
21 stars 3 forks source link

Cannot find module 'vue-3-sanitize' or its corresponding type declarations #3

Closed iKnowMagic closed 3 years ago

iKnowMagic commented 3 years ago

Hi Vanessa,

Thank you for making the vue-sanitize project available to Vue 3 :)

I am getting an error while trying to import the module into Vue 3 / Typescript:

Cannot find module 'vue-3-sanitize' or its corresponding type declarations

Thanks.

binarykiwi commented 3 years ago

Same with me:

Failed to resolve entry for package "vue-3-sanitize".
The package may have incorrect main/module/exports specified in its package.json.

Thanks a.lot for a fix and I will use it :)

bjacob596 commented 3 years ago

I have this same issue as-well.

This dependency was not found: * 'vue-3-sanitize' in ...

Thank you for this package, Is there any update on this?

Thanking you in advance for a fix.

manuel-ch commented 3 years ago

same here

Vannsl commented 3 years ago

Feel free to open a PR

say8425 commented 2 years ago

Could not find a declaration file for module 'vue-3-sanitize'.

I used 0.1.4 but this isssue is not solve yet on Vue3/TypeScript.

Nevermind. I just create vue-3-sanitize.d.ts file and add declare module "vue-3-sanitize";.