Vue 3 support?See original GitHub issue
I installed html-to-pdfmake with
npm install html-to-pdfmake for a Vue 3 and Typescript application but it does not seem to be compatible. When I try to import
import htmlToPdfmake from "html-to-pdfmake"' you get an error
Could not find a declaration file for module 'html-to-pdfmake'
I also tried
npm i --save-dev @types/html-to-pdfmake but that did not work, lot’s of errors.
Any suggestions? Thank you.
- Created 3 years ago
- Comments:8 (4 by maintainers)
Top GitHub Comments
Thanks for sharing!
I got it working with the following:
Create a file called
declare module 'html-to-pdfmake.js';
I hope this helps anyone that is using Vue 3 and Typescript.