mycurelabs / vue-html-to-paper

Vue mixin for paper printing html elements.
MIT License
298 stars 101 forks source link

cannot read property 'document' of null #40

Closed chaule97 closed 4 years ago

chaule97 commented 4 years ago

When I run code print, I have a error: Uncaught TypeError: Cannot read property 'document' of null

This is my code: this.$htmlToPaper('print', null, () => { this.printed = true })

Can you explain? Thank you so much

jofftiquez commented 4 years ago

Hi @chaule97 let me look. Thanks.

jofftiquez commented 4 years ago

Can you tell me which line is the error coming from? @chaule97