Export issue: exports only the last slide
See original GitHub issue- I’ve searched open issues to make sure I’m not opening a duplicate issue
- This issue not specific to
spectacle-boilerplate
(those issues should be opened here). - I have read through the docs before asking a question
- I am using the latest version of Spectacle
Describe Your Environment
What version of Spectacle are you using? (can be found by running npm list spectacle
)
5.1.0 (tested with 4.4.1 before, same result)
What version of React are you using? (can be found by running npm list react
)
16.5.2
What browser are you using? Chrome
What machine are you on? Mac OS, with node 10 and yarn 1.9
Describe the Problem
I have created a Spectacle presentation with 16 slides. Now I want to export it in PDF
Expected behavior: It should create a PDF with 16 pages
Actual behavior:
It creates a PDF with only one page (the last slide).
I tested with http://localhost:49530/#/?export
and spectacle-renderer -u http://localhost:49530
, same result
Note that I don’t use port 3000 because it’s already used.
Additional Information
In my presentation, one slide is one component
export default class Presentation extends React.Component {
render() {
return (
<Deck
transition={['zoom', 'slide']}
transitionDuration={500}
theme={theme}
>
<Home />
<History />
<Implementation />
</Deck>
);
}
}
It works fine in the browser, I don’t know if the issue is related to this organization…
Issue Analytics
- State:
- Created 5 years ago
- Reactions:2
- Comments:7 (5 by maintainers)
Top GitHub Comments
I can reproduce this pretty reliably. It occurs for me when I import a slide from another file rather than having everything inline.
This works:
This doesn’t:
Suggest verifying against local host for our own demo first w 1. Export to pdf in browser, 2. Using spectacle-renderer
If that doesn’t repro the issue, let’s then ask for a full non working sample to verify against