stellR42 / vue3-pdf-app

Vue 3 PDF viewer based on Mozilla's PDFJS
MIT License
82 stars 28 forks source link

could not parse arguments for #print_progress_percent #7

Closed xeniamura closed 1 year ago

xeniamura commented 1 year ago

Hello! I have imported your VuePdfApp in my project, and added localization-file with translations as in examples, but I still have issues on my console after the rendering of preview-component:

vue3-pdf-app.umd.js?05a4:12973 could not parse arguments for #print_progress_percent vue3-pdf-app.umd.js?05a4:13682 argument {{progress}} for #print_progress_percent is undefined.

Also it requires swg-image which is supposed to be in node_modules/vue3-pdf-app/dist/img

Configuration:

Steps to reproduce the problem:

add VuePdfApp on my compo

where "url" - is CreateObjectURL from received Blob

What is the expected behavior?

{{progress}} changes and shows correctly

What went wrong?

I have warnings in console

Attachments (screenshots, links, etc)

Снимок экрана 2023-03-02 в 16 57 21 Снимок экрана 2023-03-02 в 17 10 00 Снимок экрана 2023-03-02 в 17 15 37

Any help would be appreciated, thanks a lot.

W113N23 commented 1 year ago

I have the same problem please image

W113N23 commented 1 year ago

@xeniamura image use nextTickt() Solved the problem of dialog opening

xeniamura commented 1 year ago

@W113N23 Thank you. Unfortunately, nextTick() doesn't work neither for me. I had no problem with opening dialog but these warnings and errors still appear after the modal-compo with vuepdf is opened.

Also, I have noticed the difference between quotes (' and ") in this line for {{scale}} which works correctly and {{progress}}.

Снимок экрана 2023-03-03 в 16 19 53
W113N23 commented 1 year ago

@xeniamura Yes, he will still report errors. I may not care much about this, as long as it can ensure normal preview of PDF

stellR42 commented 1 year ago

@xeniamura Is the only issue the warnings in the console? Is the component working fine otherwise?

W113N23 commented 1 year ago

@stellR42 Yes, the components can be displayed normally, although warning will be printed on the console,

11
stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

rassemdev commented 1 year ago

It is also happening to me.

could not parse arguments for #print_progress_percent argument {{progress}} for #print_progress_percent is undefined. Warning: Setting up fake worker offsetParent is not set -- cannot scroll

losblancos113 commented 5 months ago

Hello @xeniamura, @stellR42 Have you fixed this issue? I think this issue somehow make the @open event not be triggered