Closed rsipakov closed 1 year ago
Hey @rsipakov, thanks for reporting this. The issue has been fixed in the latest version of the template. You can either re-download the template, or apply the fix yourself if you prefer, which is to install @types/mdx
:
pnpm install @types/mdx
I hope that helps!
Template: "Studio" File:
mdx-components.tsx
Error message:
TS2307: Cannot find module 'mdx/types' or its corresponding type declarations.
Warning message:Unused function useMDXComponents
Describe the bug When using
pnpm
we have mentioned above the error and warning messages. When usenpm
we have only a warning message.We tried to resolve this issue via:
pnpm cache
pnpm
But the error persisted in the case if we use
pnpm