Replies: 1 comment
-
I need a link to the project or a minimal reproduction to help. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
[remix-run and vite/rollup]
I'm using the plugin rehype-mdx-toc which causes
toc
to be exported from all MDX components. The plugin works fine and I can see thetoc
being generated, however I get a type error when trying to do the named import:I even tried using a type declarations file like so:
But that only works if you declare a module for that specific file path, and obviously I would like to avoid having to add a declaration every time I create a new
.mdx
file.I couldn't find any existing issues or discussions of anyone else having this problem, so maybe there's a configuration I'm missing somewhere? Any help would be greatly appreciated!
Beta Was this translation helpful? Give feedback.
All reactions