Closed jeffersonbabuyo closed 4 years ago
all good now, simply add $refs!: any
....closing this issue
Could you please share the working demo? where I need to add any?
@s4sebin
here you go: Demo Site: https://vue-html2pdf-demo.netlify.com/
Demo Github repo: https://github.com/kempsteven/vue-html2pdf-demo
all good now, simply add
$refs!: any
....closing this issue
I'm experiencing this issue, can you please explain where do you add this? Also I'm using typescript so I can't use 'any', what is the proper type to replace it with?
Same error here ... @jeffersonbabuyo could you please share the complete instruction ?
Hey guys can you try this? if this is a typescript error, i think this could be the fix
const html2pdfComponent: any = this.$refs.html2pdf
html2pdfComponent.generatePdf()
or have a look at this, this is where $refs type are inserted. https://class-component.vuejs.org/guide/refs-type-extension.html
I am getting this error when using it on vuejs with typescript.
I have imported it and register it in my @Component()