[Bug] Error: [vite-plugin-mdx] "@mdx-js/preact" must be installed
See original GitHub issueWhat version of vite
are you using?
0.1.36
System info and storybook versions
System: OS: Linux 5.17 Fedora Linux 36 (Workstation Edition) CPU: (8) x64 Intel® Core™ i7-6700HQ CPU @ 2.60GHz Binaries: Node: 17.8.0 - /opt/tools/node/bin/node Yarn: 1.22.18 - /opt/tools/node/bin/yarn npm: 8.9.0 - /opt/clients/camino/camino/node_modules/.bin/npm Browsers: Chrome: 101.0.4951.64 Firefox: 100.0
Describe the Bug
I think this transitive dependency is problematic, because I don’t even use mdx for my storybooks.
I have to install it manually
Link to Minimal Reproducible Example
No response
Participation
- I am willing to submit a pull request for this issue.
Issue Analytics
- State:
- Created a year ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
vite-plugin-mdx - npm
Vite plugin for MDX. Latest version: 3.5.11, last published: 3 months ago. Start using vite-plugin-mdx in your project by running `npm i ...
Read more >Troubleshooting - Vite
Error : Cannot find module 'C:\foo\bar&baz\vite\bin\vite.js' #. The path to your project folder may include & , which doesn't work with npm on...
Read more >Can't require remark and rehype plugins for gatsby-plugin-mdx
I encouter similar problems when trying to use the remark-math and rehype-katex plugins. I'm using version 3.13.0 of the Gatsby CLI. The problem...
Read more >Troubleshooting | Vite Ruby
This section lists a few common gotchas, and bugs introduced in the past. Please skim through before opening an issue. Installation Problems #....
Read more >Storybook won't start when used in a pnpm workspace #17342
Describe the bug I am experimenting with pnpm as its monorepo support is excellent. ... Error: [vite-plugin-mdx] "@mdx-js/react" must be installed ERR! at ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks, I’ll close this issue for now since there is a workaround already
@IanVS great idea, works, thanks!