sidebase / nuxt-pdf

📄 A easy to use, pdf exporting module to convert Nuxt 3 components into downloadable PDFs.
https://sidebase.io/nuxt-pdf/getting-started
MIT License
102 stars 11 forks source link

[unimport] failed to find "exportToPDF" imported from "#imports" #18

Closed AsirMahmud closed 4 months ago

AsirMahmud commented 7 months ago

Ask your question

when I use this import { exportToPDF } from '#imports'; it does not work I have install the package but still does not work what can I do??

Additional information

No response

Jorgagu commented 7 months ago

Hi @AsirMahmud, have you correctly put your module in your nuxt config like it's say in the quick start documentation here ?https://sidebase.io/nuxt-pdf/getting-started/quick-start

zoey-kaiser commented 4 months ago

Hi @AsirMahmud 👋

As the module gets auto-imported but Nuxt, you should be able to just use exportToPDF inside your project, without any imports. This import is only needed inside the playground, as it gets compiled diffrently.

As @Jorgagu noted, please check that you have followed the installation guide. You can view this here: https://sidebase.io/nuxt-pdf/getting-started/installation https://sidebase.io/nuxt-pdf/getting-started/quick-start