You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
npm ERR! peerinvalid The package [email protected] does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer [email protected] wants webpack@^2.2.0
What is the expected behavior?
For webpack-dev-server to also have a v3 version published to NPM with a correct peer dependency on webpack v3.
Please mention other relevant information such as the browser version, Node.js version, webpack version and Operating System.
There is also an issue open on the webpack-dev-server repo: Not compatible with webpack 3.0 ?? #961
It seems the peer dependency was actually already fixed, but somehow never published to NPM.
Builds all over the web are failing because of this. Really such a big release should get simultaneous releases of all major components so these problems don't occur, but this issue is already open for 9 days. Which is why I ask here in the hope this gets the attention it deserves. Because it looks like fixing it is just a single npm publish away...
BTW: I think a lesson to learn here for future releases is that first major components like webpack-dev-server (but ideally,also tools from third parties) should get some time to get tested and release and publish to NPM a new version that has a wider peer dependency range that includes the new upcoming Webpack version, and only then should webpack itself be released.
Because NPM will pick the latest version of webpack and webpack-dev-server, any new projects trying to install both (e.g. starter kits etc) run a big risk of ending up with a broken build.
WORKAROUND: Downgrade to Webpack 2 until this is resolved by specifying the version explicitly:
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
Upgrade to Webpack 3 fails on missing peer dependency
If the current behavior is a bug, please provide the steps to reproduce.
Take any project that is using both webpack and webpack-dev-server, then:
Observe: NPM install fails with error message:
For an example, have a look at my project ulog. It has Greenkeeper enabled but it's attempts to upgrade webpack are failing with this message:
What is the expected behavior?
For webpack-dev-server to also have a v3 version published to NPM with a correct peer dependency on webpack v3.
Please mention other relevant information such as the browser version, Node.js version, webpack version and Operating System.
There is also an issue open on the webpack-dev-server repo:
Not compatible with webpack 3.0 ?? #961
It seems the peer dependency was actually already fixed, but somehow never published to NPM.
Builds all over the web are failing because of this. Really such a big release should get simultaneous releases of all major components so these problems don't occur, but this issue is already open for 9 days. Which is why I ask here in the hope this gets the attention it deserves. Because it looks like fixing it is just a single
npm publish
away...BTW: I think a lesson to learn here for future releases is that first major components like webpack-dev-server (but ideally,also tools from third parties) should get some time to get tested and release and publish to NPM a new version that has a wider peer dependency range that includes the new upcoming Webpack version, and only then should webpack itself be released.
Because NPM will pick the latest version of webpack and webpack-dev-server, any new projects trying to install both (e.g. starter kits etc) run a big risk of ending up with a broken build.
WORKAROUND: Downgrade to Webpack 2 until this is resolved by specifying the version explicitly:
This issue was moved from webpack/webpack#5218 by @sokra. Orginal issue was by @Download.
The text was updated successfully, but these errors were encountered: