Typescript errors (cannot find module) when importing .md or .mdx files into a .tsx component #10640
Open
1 of 2 tasks
Labels
closed: invalid
This issue / PR is low quality, unwanted or spam and doesn't qualify as a contribution in any way.
documentation
The issue is related to the documentation of Docusaurus
Have you read the Contributing Guidelines on issues?
Description
There is no documentation (or if there is, I cannot find it) of what needs to be modified in the tsconfig.json file to remove the "cannot find module" errors when importing .md or .mdx files into a .tsx page.
For sass modules (*.module.scss files), there is documentation on how to resolve these errors in typescript:
https://docusaurus.io/docs/styling-layout#typescript-support
I have no doubt the fix for .md and .mdx files are similar to the fix for sass, but it isn't obvious, and I haven't been able to figure out what docusaurus plugin item needs to be added to the tsconfig.json types to resolve these issues.
Examples of error:
Self-service
The text was updated successfully, but these errors were encountered: