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.

React Markdown is Broken On Remix

See original GitHub issue

What version of Remix are you using?

1.4.3

Steps to Reproduce

  • ReactMarkdown component errors out with the following error when deploying to Cloudflare Pages + Remix

Screenshot 2022-05-07 at 3 27 10 AM

Steps:

  1. Clone this repo: https://github.com/mehulmpt/react-markdown-cloudflare-remix (this repo is Remix barebones TS + Cloudflare Pages starter template)
  2. npm install and npm run dev
  3. You’ll see this error:
Screenshot 2022-05-07 at 3 34 24 AM

It seems like Remix ships wrong node polyfills: https://github.com/remarkjs/react-markdown/issues/688#issuecomment-1120053163

Expected Behavior

ReactMarkdown should work fine

Actual Behavior

It crashes with an error

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:12
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

github_iconTop Results From Across the Web

React Markdown Broken On Remix · Issue #688 - GitHub
You'll see this error: Screenshot 2022-05-07 at 3 34 24 AM. Expected behavior. ReactMarkdown should work fine. Actual behavior. It crashes with ...
Read more >
react-markdown - npm
This package is a React component that can be given a string of markdown that it'll safely render to React elements. You can...
Read more >
Ryan Florence on Twitter: "Building the docs site for ...
Remix in the browser orchestrates it all for you. Node.js loader + React component, done. Github is my CMS, edit/add there and the...
Read more >
Newest 'react-markdown' Questions - Stack Overflow
I'v added a library called "react-markdown" and now it doesn't compiles and shows this error. How can I fix it? The request 'process/browser'...
Read more >
MDX and React - Docusaurus
Docusaurus has built-in support for MDX v1, which allows you to write JSX within your Markdown files and render them as React components....
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