Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #56 from TaTo30/fix/css-exports
css export issue fixed
- Loading branch information
dd44c09
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dear Aldo.
The css export is still fails. I've noticed it when i want to use text-layer, the text is rendered below the pdf preview canvas. After a bit research i noticed the textLayer class is missing from the styles:
And the rendered preview looks like this:
I don't know what can be the correct export syntax? But when I copy the style.css to my Quasar project folder and include it to my project, the textLayer rendering will be good.
Thank you for your attention.
dd44c09
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi,
Have you imported the styles using
import '@tato30/vue-pdf/style.css'
statement?dd44c09
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh no. The last version I've used was 1.3.4. This version didn't need it. Only after updating to 1.7.4 appeared my problem. I will try it, thank you.
dd44c09
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
import '@tato30/vue-pdf/style.css'
-->
Missing "./style.css" export in "@tato30/vue-pdf" package 7:53:59 [vite] Internal server error: Missing "./style.css" export in "@tato30/vue-pdf" package
But if I add this line to your export:
"./style.css": "./dist/style.css",
It works!