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
I searched issues and discussions and couldn’t find anything (or linked relevant results below)
Affected package
main package
Steps to reproduce
Make a project in NextJS (using typescript, next15)
Use React-Markdown in a client component
Run build task
Actual behavior
I am using react-markdown in Next 15 (React 19)
Doing npm run build causes this problem
./node_modules/react-markdown/lib/complex-types.ts:25:21
Type error: Cannot find namespace 'JSX'.
23 |
24 | export type NormalComponents = {
> 25 | [TagName in keyof JSX.IntrinsicElements]:
| ^
26 | | keyof JSX.IntrinsicElements
27 | | C
``
After researching this topic, I found the fix: Import React and replace JSX with React.JSX
I would happily make a PR with this change if you allow it
Thanks
Wojtek
### Expected behavior
Not crash, allow the build to finish (that's what happens after my fix)
### Runtime
node@23
### Package manager
npm@10.8
### Operating system
macOS Sequoia 15
### Build and bundle tools
Next.js
The text was updated successfully, but these errors were encountered:
Initial checklist
Affected package
main package
Steps to reproduce
Make a project in NextJS (using typescript, next15)
Use React-Markdown in a client component
Run build task
Actual behavior
I am using react-markdown in Next 15 (React 19)
Doing npm run build causes this problem
The text was updated successfully, but these errors were encountered: