Open ahoiroman opened 3 years ago
I've ever met the same problem, the reason is:
I've set 'class' property to a <div> tag in the <template> setion, but the class is defined neither in <style> section nor globally. Chrome ignores the error, but some other browers (like Safari) throw an exception for lacking of the definition.
Nope, this is not the problem in this case.
<template>
<!-- <pdf
:page="i"
:src="pdfdata.src"
>
</pdf>-->
</template>
If I don't use this part and do not import pdf from 'vue-pdf'
, the view is usable. There's something just wrong with vue-pdf I guess.
In the template, the property 'src' of <pdf> should be a string, but you declare pdfdata.src as an object in the script, the 2 types dismatch.
You are right, but this did not solve the problem:
pdfdata: {
src: '',
numPages: undefined
},
Error stays the same.
Hello there,
I am getting this error from time to time:
This is the trace back:
This is how I include the module: