question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

4reactions
glennsayerscommented, Nov 7, 2018

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:

 <Deck theme={theme}>
   <Slide transition={["zoom"]} bgColor="primary">
     <Heading size={1} fit caps lineHeight={1}>
        React
     </Heading>
     <Image src={Logo} height={200} width={200}/>
   </Slide>
 </Deck>

This doesn’t:

import Intro from './intro';

...

 <Deck theme={theme}>
   <Intro/>
 </Deck>
1reaction
ryan-roemercommented, Sep 24, 2018

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Timing issues when export to video in Powerpoint
The timing is spot on when playing the presentation. However, when we export to video, the timing is way off.
Read more >
When Exported PowerPoint Video SKIPS or has AUDIO ISSUES
Social Media JOB OPPORTUNITIES! (Work from home | No experience required): Click here to learn more: shorturl.at/jKSX2➤ SUBSCRIBE to get ...
Read more >
Export to PowerPoint or another file format in Keynote on Mac
Movie: To export only part of the presentation, select From and enter the beginning and ending slide numbers. If you recorded a narration,...
Read more >
Increase issue limit for Excel exports in Jira Cloud
Hence when exporting to CSV, JIRA will only export the first 1000 issues. Environment. Jira Cloud only. Cause. The maximum allowable value is ......
Read more >
Advanced Export – UpSlide Help & Support
When updating the exports in PPT the default export then now does not include the row (because it is now hidden in Excel)....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found