You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Today I used patch-package to patch react-markdown@8.0.7 for the project I'm working on.
It was breaking the build with React 19 and Next.js 15. I had to add JSX to the import statement:
import type {ReactNode, ComponentType, ComponentPropsWithoutRef, JSX} from 'react'
Here is the diff that solved my problem:
diff --git a/node_modules/react-markdown/lib/complex-types.d.ts b/node_modules/react-markdown/lib/complex-types.d.ts
index f67d04a..b62cadf 100644
--- a/node_modules/react-markdown/lib/complex-types.d.ts+++ b/node_modules/react-markdown/lib/complex-types.d.ts@@ -1,4 +1,4 @@-import type {ReactNode, ComponentType, ComponentPropsWithoutRef} from 'react'+import type {ReactNode, ComponentType, ComponentPropsWithoutRef, JSX} from 'react'
import type {Position} from 'unist'
import type {Element} from 'hast'
export type ReactMarkdownProps = {
diff --git a/node_modules/react-markdown/lib/complex-types.ts b/node_modules/react-markdown/lib/complex-types.ts
index 5319a88..efd64bf 100644
--- a/node_modules/react-markdown/lib/complex-types.ts+++ b/node_modules/react-markdown/lib/complex-types.ts@@ -1,4 +1,4 @@-import type {ReactNode, ComponentType, ComponentPropsWithoutRef} from 'react'+import type {ReactNode, ComponentType, ComponentPropsWithoutRef, JSX} from 'react'
import type {Position} from 'unist'
import type {Element} from 'hast'
Hi! 👋
Firstly, thanks for your work on this project! 🙂
Today I used patch-package to patch
react-markdown@8.0.7
for the project I'm working on.It was breaking the build with React 19 and Next.js 15. I had to add JSX to the import statement:
import type {ReactNode, ComponentType, ComponentPropsWithoutRef, JSX} from 'react'
Here is the diff that solved my problem:
This issue body was partially generated by patch-package.
The text was updated successfully, but these errors were encountered: