@mdx-deck/layouts @mdx-deck/components do not work
See original GitHub issueScenario:
Given I am using v3
And I install "@mpx-deck/layouts"
When I import a layout
And I run "npx mdx-deck my-deck.mdx"
Then the build fails
Importing like this:
import { Split } from '@mdx-deck/layouts'
## About
<Split>
# Hello
# Goodbye
</Split>
mdx-deck failing like this
Generating SSR bundle failed
Unexpected token (8:4)
File: ../@mdx-deck/layouts/src/Split.js:8:4
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:7 (1 by maintainers)
Top Results From Across the Web
Create developer presentations with MDX Deck - Part 1
With MDX Deck you can create presentations using only MDX! ... but that are created using mdx components and not JavaScript ones.
Read more >MDX: Markdown for the component era
MDX allows you to use JSX in your markdown content. You can import components, such as interactive charts or alerts, and embed them...
Read more >mdx-deck: Docs, Tutorials, Reviews | Openbase
mdx -deck documentation, tutorials, reviews, alternatives, versions, dependencies, ... The layout component will wrap the MDX elements within that slide, ...
Read more >Learning MDX Deck: Layouts - DAVEFOLLETT.IO
... also possible to create your own layouts. I won't cover that here, but you can read abou. ... Layouts for MDX Deck...
Read more >@jacobmischka/mdx-deck - npm Package Health Analysis | Snyk
Learn more about @jacobmischka/mdx-deck: package health score, popularity, security, ... The layout component will wrap the MDX elements within that slide, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
K, finally got it.
import { Split } from 'mdx-deck
Some of the v2 packages were deprecated in v3. You should import directly from
mdx-deck
in v3 - see https://github.com/jxnblk/mdx-deck/blob/master/MIGRATION.md#updating-to-mdx-deck-v3