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.

@mdx-deck/layouts @mdx-deck/components do not work

See original GitHub issue

Scenario:

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

Fixed By: https://github.com/jxnblk/mdx-deck/pull/415

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
portenezcommented, Jul 22, 2019

K, finally got it. import { Split } from 'mdx-deck

1reaction
jxnblkcommented, Jul 21, 2019

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

Read more comments on GitHub >

github_iconTop 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 >

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