React Markdown is Broken On Remix
See original GitHub issueWhat 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
Steps:
- Clone this repo: https://github.com/mehulmpt/react-markdown-cloudflare-remix (this repo is Remix barebones TS + Cloudflare Pages starter template)
npm install
andnpm run dev
- You’ll see this error:

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:
- Created a year ago
- Reactions:12
- Comments:6 (1 by maintainers)
Top 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 >
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 Free
Top 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
This seems to be a problem with
@esbuild-plugins/node-modules-polyfill
, which is actually relying onrollup-plugin-node-polyfills
.I’m also having the same issue.