vite-plugin-mdx: TypeError: mdx is not a function
vite.config.json is:
import { defineConfig } from 'vite';
import mdx from 'vite-plugin-mdx'
const { resolve } = path;
export default defineConfig({
plugins: [
mdx()
],
})
but I got error:
TypeError: mdx is not a function
May I ask Why and how to solve it?
About this issue
- Original URL
- State: closed
- Created a year ago
- Reactions: 1
- Comments: 15
@silvenon Still error, You can try it locally.