-
-
Notifications
You must be signed in to change notification settings - Fork 128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No SSR support (Remix): React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: object. #640
Comments
You can try my work around until react-codemirror support Remix SSR: import { ClientOnly } from 'remix-utils/client-only'
...
<ClientOnly>
{() => (
<CodeMirror extensions={[python()]} value={codeValue} onChange={(value) => setCodeValue(value)} />
)}
</ClientOnly> Reference: |
Thanks @quangIle! But I'm wondering if this issue should still be open or get closed as the solutions are considered a "workaround". |
I have tried to use
CodeMirror
with Remix but it doesn't work and breaks instantly.Here's a minimal reproduction link on codesandbox https://codesandbox.io/p/devbox/twilight-voice-33kd6j
Error:
The text was updated successfully, but these errors were encountered: