Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm's latest v0.21.5 is not compatible with [email protected] #144

Open
metzg opened this issue May 19, 2024 · 0 comments
Open

npm's latest v0.21.5 is not compatible with [email protected] #144

metzg opened this issue May 19, 2024 · 0 comments

Comments

@metzg
Copy link

metzg commented May 19, 2024

Describe the bug

Hi,

It seems the latest published version on npm is outdated and not compatible with vite 5.

On a blank Vue project (i.e. minimal repro):

npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: [email protected]
npm WARN Found: [email protected]
npm WARN node_modules/@yankeeinlondon/builder-api/node_modules/vite
npm WARN   peer vite@"^5.0.0" from @vitejs/[email protected]
npm WARN   node_modules/@yankeeinlondon/builder-api/node_modules/@vitejs/plugin-vue
npm WARN     peer @vitejs/plugin-vue@">=2.3.4" from [email protected]
npm WARN     node_modules/@yankeeinlondon/builder-api/node_modules/vite-plugin-md
npm WARN 
npm WARN Could not resolve dependency:
npm WARN peer vite@"^4.0.0 || ^3.0.0" from [email protected]
npm WARN node_modules/@yankeeinlondon/builder-api/node_modules/vite-plugin-md
npm WARN   vite-plugin-md@">=0.22.5" from @yankeeinlondon/[email protected]
npm WARN   node_modules/@yankeeinlondon/builder-api
npm WARN 
npm WARN Conflicting peer dependency: [email protected]
npm WARN node_modules/vite
npm WARN   peer vite@"^4.0.0 || ^3.0.0" from [email protected]
npm WARN   node_modules/@yankeeinlondon/builder-api/node_modules/vite-plugin-md
npm WARN     vite-plugin-md@">=0.22.5" from @yankeeinlondon/[email protected]
npm WARN     node_modules/@yankeeinlondon/builder-api

On an existing project:

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/vite
npm ERR!   dev vite@"^5.2.8" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer vite@"^4.0.0" from [email protected]
npm ERR! node_modules/vite-plugin-md
npm ERR!   dev vite-plugin-md@"*" from the root project
npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.

Reproduction

npm create vue@latest && npm i --save-dev vite-plugin-md

System Info

Binaries:
    Node: 20.9.0 - /usr/bin/node
    Yarn: 1.22.19 - /snap/bin/yarn
    npm: 8.15.0 - /usr/local/bin/npm


### Used Package Manager

npm

### Validations

- [X] Follow our [Code of Conduct](https://github.com/antfu/.github/blob/main/CODE_OF_CONDUCT.md)
- [X] Read the [Contributing Guide](https://github.com/antfu/contribute).
- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- [X] Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
- [X] The provided reproduction is a [minimal reproducible](https://stackoverflow.com/help/minimal-reproducible-example) of the bug.

### Contributions

- [ ] I am willing to submit a PR to fix this issue
- [ ] I am willing to submit a PR with failing tests (actually just go ahead and do it, thanks!)
@metzg metzg changed the title v0.21.5 is not compatible with [email protected] npm's v0.21.5 is not compatible with [email protected] May 19, 2024
@metzg metzg changed the title npm's v0.21.5 is not compatible with [email protected] npm's latest v0.21.5 is not compatible with [email protected] May 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant