antfu / vite-plugin-md

Markdown with Vue for Vite
MIT License
606 stars 89 forks source link

Error [ERR_MODULE_NOT_FOUND]: Cannot find package '@rollup/pluginutils' #121

Closed mzenz closed 1 year ago

mzenz commented 2 years ago

Describe the bug

Creating a basic starter Vite + Vue + TS project via yarn create vite@latest fails to start dev server after installing vite-plugin-md.

Repro steps:

Reproduction

https://github.com/mzenz/vite-plugin-md-bug

System Info

System:
    OS: macOS 12.6
    CPU: (4) x64 Intel(R) Core(TM) i5-8210Y CPU @ 1.60GHz
    Memory: 32.39 MB / 16.00 GB
    Shell: 3.5.1 - /usr/local/bin/fish
  Binaries:
    Node: 18.8.0 - /usr/local/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 8.18.0 - /usr/local/bin/npm

Used Package Manager

yarn

Validations

Hextar commented 2 years ago

I'm also trying to updated my project to use vite 3 and encountered that issue

image

ntnyq commented 2 years ago

Install it manually.

holtwick commented 2 years ago

I see the same problem. I installed the dependencies, but the references in vite-plugin-md are outdated. New major versions of rollup and happy-dom are available. It would be great, if these dependencies could be updated in this project as well. Thanks.

WARN  Issues with peer dependencies found
.
└─┬ vite-plugin-md 0.20.4
  ├── ✕ unmet peer rollup@^2.77.0: found 3.2.3
  └─┬ @yankeeinlondon/builder-api 0.4.1
    └─┬ @yankeeinlondon/happy-wrapper 2.6.0
      └── ✕ unmet peer happy-dom@^6.0.4: found 7.5.13
nolandcheng commented 2 years ago

I had a similar issue. And I need to fix it by installing happy-dom, I think the reason may be because I updated vite 3 in my project

yankeeinlondon commented 1 year ago

I believe everything after Release v0.22.0 should work fine now. Please re-open if that is not the case.