Closed calvinkehl closed 2 years ago
Hi @calvinkehl,
Could you provide more details on your environment (Vue version, etc.)?
Hey @hrynko, of course! Here is a excerpt of my package.json:
"dependencies": {
"dexie": "3.2.2",
"ol": "6.15.1",
"ol-layerswitcher": "3.8.3",
"primeflex": "3.2.1",
"primeicons": "5.0.0",
"primevue": "3.15.0",
"vue": "3.2.37",
"vue-i18n": "9.1.10",
"vue-pdf-embed": "^1.1.4",
"vue-router": "4.1.2"
},
"devDependencies": {
"@types/node": "18.0.6",
"@vitejs/plugin-vue": "3.0.1",
"@vue/compiler-sfc": "3.2.37",
"typescript": "4.7.4",
"vite": "3.0.2",
"vite-plugin-compression": "0.5.1",
"vite-plugin-pwa": "0.12.3",
"vue-tsc": "0.38.9"
}
I haven't been able to reproduce, but I have a hunch that updating VuePdfEmbedMethods
with the following might fix the issue:
import { MethodOptions } from 'vue'
...
export interface VuePdfEmbedMethods extends MethodOptions {
print: (dpi?: number, filename?: string) => Promise<void>;
render: () => Promise<void>;
}
I would appreciate if you could try this and prepare a PR if it works?
Please let me know if I can assist you somehow
Thanks for your help! It seems like your solution fixed the problem. As I haven't checked out the code, can you please create the PR?
Would you maybe be available for opening a PR? It's only about updating types/vue3-pdf-embed.d.ts
When I try to build my project I get the following error message:
Using the latest release version.