-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Cannot find namespace 'JSX' #5061
Comments
Seems like the MDX types expect to have access to a Not sure how to fix this at the current time (we don't even rely on those types ourselves 😅), but in the meantime enabling |
@Princesseuh actually not only MDX, but |
Yes, because the MDX types also define types for |
Maybe https://github.com/vercel/next.js/blob/canary/examples/blog/tsconfig.json |
+1 -- both to the problem, and that skipLibCheck fixes it :) |
What version of
astro
are you using?1.4.7
Are you using an SSR adapter? If so, which one?
None
What package manager are you using?
npm
What operating system are you using?
Mac
Describe the Bug
I create a project use
npm create astro@latest
, and select theblog
template, after it is done, I use this build script:it is from https://docs.astro.build/en/guides/typescript/#type-checking
it report some typescript error:
you can just run
npx tsc --noEmit
in stackblitz terminal, you will find it.Link to Minimal Reproducible Example
https://stackblitz.com/github/withastro/astro/tree/latest/examples/blog
Participation
The text was updated successfully, but these errors were encountered: