Broken output when using Deno+Vite+CDN import #1399
Unanswered
chaosharmonic
asked this question in
Q&A
Replies: 1 comment 13 replies
-
Basically the error reads as: Expected a React element, but got a React element instead. You’re likely pulling in multiple versions of React somehow. |
Beta Was this translation helpful? Give feedback.
13 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm running into snags attempting to render Markdown in a React app using Vite and Deno. In brief, I'm getting an error about objects not being valid React children.
This is happening across a couple different places in my codebase, but here's the simplest representation:
Relevant error logging:
Some additional details:
react-markdown
versions. For a while I was getting working output just using 8.x instead of 9.x, but that doesn't seem to be the root issue, since it's suddenly started breaking on me again.npm:react-markdown
, the result will vary. Running my existing setup, I get a different error under this setup, about Vite externalizing modules. If I run a similar setup under Node, it works without issue... but I'm not trying to migrate everything to a different JS runtime for this.Is there something obvious I might be missing here, or is it possible I just ran across a bug?
Beta Was this translation helpful? Give feedback.
All reactions