Closed andromidasj closed 1 month ago
I don't know what method you use.
Here is a little advice:
https://github.com/mdx-js/mdx-analyzer#typescript
Maybe you can use global d.ts.
I will close this issue as it has nothing to do with Velite itself.
I'm exporting the
MDXContent
function using very similar code to what's given in the docs. Everything is working and rendering as expected, but in VSCode I'm getting the following typescript error when using a React component in a .mdx file:Here's my
mdx-components.tsx
file:Here's my Callout component, if it helps:
I've tried importing the component within the .mdx file which removed the error, but then the page completely failed to load since importing directly is not supported as shown in the docs. How can I get VSCode to be happy with just using the component in the .mdx file and not show an error?