Open Zaaaoo opened 4 years ago
Your situation is the same as mine. Did you solve the problem? After I executed the follows, I tried to import 'vue-pdf'. But, 'vue-pdf' was not found.
npm install --save vue-pdf
To solve my problem I done :
shims-vue.d.ts
main.ts
Thank you. I'll try it.
@Zaaaoo your solution gives me Cannot find name 'pdf'.
@Zaaaoo your solution gives me
Cannot find name 'pdf'.
me too
You should not write export default pdf
. Just
vue-pdf-shims.d.ts
declare module 'vue-pdf'
Hi,
I have a problem to import vue-pdf, the module is not found.
My project use TypeScript :
Did I forget something? Do you have examples in TypeScript ?
Thanks.
Versions :