momocow / webpack-userscript

A Webpack plugin for userscript projects. 🙈
https://cow.moe/webpack-userscript/
MIT License
202 stars 21 forks source link

Webpack peer dependency needs to be updated #53

Closed StrikeAgainst closed 1 year ago

StrikeAgainst commented 3 years ago

Thank you for your recent update, but when I tried to pull it with npm, I got this error:

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: web@1.0.0
npm ERR! Found: webpack@5.31.0
npm ERR! node_modules/webpack
npm ERR!   dev webpack@"^5.27.1" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer webpack@"^4.0.0" from webpack-userscript@2.5.7
npm ERR! node_modules/webpack-userscript
npm ERR!   dev webpack-userscript@"^2.5.6" 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.

Checking the package.json, it seems like the peer dependency to an outdated webpack version causes trouble. Please consider to update your dependencies.

Gribbs commented 2 years ago

me too :(

WangNianyi2001 commented 2 years ago

This this still a problem.

okoetter commented 1 year ago

It seems like this plugin still does not support Webpack 5. Will this be fixed anytime soon?

WangNianyi2001 commented 1 year ago

@okoetter I made a fork, hopefully it'd work.

inazuma-bot commented 1 year ago

:tada: This issue has been resolved in version 3.0.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: