question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug] Error: [vite-plugin-mdx] "@mdx-js/preact" must be installed

See original GitHub issue

What 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:closed
  • Created a year ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
MichaelBitardcommented, Jun 15, 2022

Thanks, I’ll close this issue for now since there is a workaround already

1reaction
giannifcommented, Jun 14, 2022

@IanVS great idea, works, thanks!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found