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.

Hello. When I try to export my presentation like:

 mdx-deck-export pdf history.mdx

I have following error:

 ERROR  Failed to compile with 1 errors                                                                                                       20:56:34

 error  in ./node_modules/mdx-deck/index.js

Module parse failed: Unexpected token (2:9)
You may need an appropriate loader to handle this file type.
| export * from '@mdx-deck/components'
> export * as themes from '@mdx-deck/themes'
| export * as Layouts from '@mdx-deck/layouts'
| 

presentation file: https://github.com/Aetet/history/blob/master/history.mdx

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:3
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
Aetetcommented, Jun 13, 2019

Yes, I have

1reaction
filoxocommented, Jun 20, 2019

I worked around this by manually modifying /node_modules/mdx-deck/index.js with named exports

export * from '@mdx-deck/components'
import * as themes from '@mdx-deck/themes'
import * as Layouts from '@mdx-deck/layouts'

export {
  themes,
  Layouts
}

then mdx-deck-export pdf deck.mdx worked.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Export unlimited PDFs | Adobe Acrobat Export PDF
Adobe Acrobat Export PDF makes it easy to export unlimited PDFs to Word or Excel directly in your browser. Supports DOC, DOCX, XLS,...
Read more >
PDF Export | reveal.js
Presentations can be exported to PDF via a special print stylesheet. ... Your speaker notes can be included in the PDF export by...
Read more >
How to export a PDF document to other format. - PDF Complete
Open the PDF document you want to export. · From the menu bar select File and choose Export. · From the list of...
Read more >
Exporting to PDF—ArcMap | Documentation
ArcMap can export maps to PDF, a good format for sharing maps that preserves graphic quality and allows interaction between the user and...
Read more >
Export notes from OneNote as a PDF - Microsoft Support
If you want to share some of your OneNote notes, but don't want to give someone full access to all of them, you...
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