Next.js Discord

Discord Forum

Cannot find namespace 'JSX' when building next.js

Unanswered
Asian black bear posted this in #help-forum
Open in Discord
Asian black bearOP
I am following the [contributors guide](https://github.com/vercel/next.js/blob/canary/contributing/core/developing.md) to build next.js, but pnpm types is failing with
@next/env: > @next/env@15.0.0-canary.130 types /root/nextjs/next.js/packages/next-env
@next/env: > tsc --declaration --emitDeclarationOnly --declarationDir dist
@next/env: ../../node_modules/@types/mdx/index.d.ts(72,58): error TS2503: Cannot find namespace 'JSX'.
...


Any ideas for what's going wrong?

0 Replies