vue-flash-message icon indicating copy to clipboard operation
vue-flash-message copied to clipboard

suggest adding d.ts file for the module

Open zhengfen opened this issue 6 years ago • 5 comments

for Typescript use

zhengfen avatar Nov 27 '18 08:11 zhengfen

Ok, it will be added in upcoming releases. Thank you for a suggestion

keen-on-design avatar Dec 11 '18 22:12 keen-on-design

This is causing me a problem as I keep getting the error message:

Could not find a declaration file for module 'vue-flash-message'. 'node_modules/vue-flash-message/dist/vue-flash-message.min.js' implicitly has an 'any' type. Try npm install @types/vue-flash-messageif it exists or add a new declaration (.d.ts) file containingdeclare module 'vue-flash-message';``

Any ideas how can resolve this as it means I can't use it until then.

nicholascourage avatar Mar 30 '20 09:03 nicholascourage

This is causing me a problem as I keep getting the error message:

Could not find a declaration file for module 'vue-flash-message'. 'node_modules/vue-flash-message/dist/vue-flash-message.min.js' implicitly has an 'any' type. Try npm install @types/vue-flash-messageif it exists or add a new declaration (.d.ts) file containingdeclare module 'vue-flash-message';``

Any ideas how can resolve this as it means I can't use it until then.

Hi, @nicholascourage! I faced the same problem. Did you manage to solve it?

liliyavoloshina avatar Mar 17 '21 12:03 liliyavoloshina

Hey @liliyavoloshina I can't remember sorry - this was a long time ago (nearly a year). Looking at it again and the error message I would suspect there's an issue with the npm dependancy and suggest deleting your node_modules dir and rerunning npm install -g, checking the node version installed is compatible, 13/14 have their differences, etc

nicholascourage avatar Mar 17 '21 13:03 nicholascourage

@nicholascourage, thanks for the answer! I finally figured it out and like you said it was a dependency issue, not a plugin

liliyavoloshina avatar Mar 18 '21 08:03 liliyavoloshina