We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7f86fd0 commit 133aee4Copy full SHA for 133aee4
2 files changed
packages/nuxt/src/runtime/plugin.ts
@@ -2,5 +2,6 @@ import { defineNuxtPlugin } from '#app'
2
import PDFEASY from 'pdfeasy'
3
4
export default defineNuxtPlugin(({ provide }) => {
5
- provide('pdf', PDFEASY as typeof PDFEASY)
+ // @ts-expect-error
6
+ provide('pdf', PDFEASY.default as typeof PDFEASY)
7
})
packages/vue/src/plugin.ts
@@ -5,7 +5,8 @@ interface PluginOptions {}
export const PDFPlugin: Plugin = {
install: (app: App, options: PluginOptions = {}) => {
8
- app.config.globalProperties.$pdf = pdfeasy;
9
+ app.config.globalProperties.$pdf = pdfeasy.default;
10
},
11
};
12
0 commit comments