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.

CRLF breaks importing components when used with front matter

See original GitHub issue

Hi there, great project!

When I try to import a component below front matter like so:

---
title: Example
description: This is an example
---
import { MDXBreadboard } from 'mdx-breadboard'

It sometimes throws an error:

Uncaught ReferenceError: MDXBreadboard is not defined

When I remove the front matter, the component seems to work just fine.

Any suggestions?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10

github_iconTop GitHub Comments

1reaction
jamesknelsoncommented, May 9, 2018

Thanks for figuring that out. If you can do a PR I’d be happy to merge it, otherwise I’ll try and put a fix together once I have some time.

0reactions
jamesknelsoncommented, Nov 3, 2018

Closing this issue as I’ve deprecated mdxc in favor of https://github.com/mdx-js/mdx

Read more comments on GitHub >

github_iconTop Results From Across the Web

IJ05781: When user hits enter to change line description ... - IBM
Programs that attempt to import projects from text files may use tabs as field delimiters and line breaks (CRLF) to determine end of...
Read more >
doesn't match CRLF · Issue #244 · rust-lang/regex - GitHub
I created a regex with multi_line set to true, but after debugging why the regex was matching in a unittest but not in...
Read more >
ER Import file with either LF or CRLF line break
Hello,. I'm trying to import a txt file with ER. When I build the format I have to choose what kind of line...
Read more >
MDX and React - Docusaurus
Apart from importing a component and exporting a component, a third way to use a component in MDX is to register it to...
Read more >
How to properly format your logo carriage return (CR LF to LF)
Once you select View > Show Symbol > Show End of Line you can see the CR LF characters visually. You can then...
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