Closed tonai closed 2 years ago
Read the first paragraph of the readme:
Vite plugin to use MDX v1 with your Vite app. For MDX v2 use
@mdx-js/rollup
instead, this comment explains how to implement it.
😉
Sorry I did see that -_-
I tryed and I'm still having trouble to run @mdx-js/rollup
but that's not related to this lib anymore.
Thanks for the info and sorry again
No problem, feel free to share the error in my Twitter DM if you didn't manage to find the solution yet.
Hello, I am unable to make this lib works with MDX V2.
I followed the Readme and did the following steps:
npm init vite@latest vite-mdx-2
cd vite-mdx-2/
npm i
npm install vite-plugin-mdx
npm install @mdx-js/mdx@next
vite.config.js
with the same content as in the Readme file.But then when I run
npm run dev
, I have the following error:I also tried to add
"type": "module"
inpackage.json
without success.Here is the minimum reproducible repo: https://github.com/tonai/vite-mdx-2
Does someone know what I am missing ? Thanks,