New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Empty pdf pages #1245
Comments
Same here. new project generated with then:
and PDF slides-export.pdf is 1KB one empty page (included) package.json: {
"name": "projectname",
"private": true,
"scripts": {
"build": "slidev build",
"dev": "slidev --open",
"export": "slidev export"
},
"dependencies": {
"@slidev/cli": "^0.43.1",
"@slidev/theme-default": "latest",
"@slidev/theme-seriph": "latest"
},
"devDependencies": {
"playwright-chromium": "^1.40.1"
}
} |
OK. Found it.
going inside vue its: const version = "3.4.7";
const warn = !!("production" !== "production") ? warn$1 : NOOP;
const ErrorTypeStrings = ErrorTypeStrings$1 ; /// IT BREAKES vvv HERE vvv
const devtools = !!("production" !== "production") || __VUE_PROD_DEVTOOLS__ ? devtools$1 : void 0;
const setDevtoolsHook = !!("production" !== "production") || __VUE_PROD_DEVTOOLS__ ? setDevtoolsHook$1 : NOOP;
const _ssrUtils = { problem is because inside node_modules@slidev\cli\dist\cli.mjs there is
comment it out @tiredElephant (YES, inside node_modules@slidev\cli\dist\cli.mj unfortunately... ;-( ) restart export and it should work. I can't see the reason why this line is there. Is there one @antfu ? |
Or else Vite needs this defined as constant so its gets replaced:
|
I am not able to reproduce it on my side, can anyone share a reproduction repo? |
@antfu This repo gives you white exports. It uses bun, but you could just do Tried a few combos of latest playwright devDep and sli.dev, all coming up as white page of PDF (the latest test is with --per-slide giving loads of white pages). |
I too am facing this problem. |
Describe the bug
running
npx slidev export --per-slide --format pdf
gives me a pdf with empty pagesTo Reproduce
try running
npx slidev export --per-slide --format pdf
although it seems more like a misconfiguration of my partDesktop (please complete the following information):
The text was updated successfully, but these errors were encountered: