'worker-loader' requires 'webpack' as peerDependency
Closed this issue · 2 comments
MichaelDeBoey commented
When I install react-pdf-js
in a clean repo, I get the following warnings:
npm WARN react-pdf-js@3.0.2 requires a peer of react@>=15 but none is installed. You must install peer dependencies yourself.
npm WARN react-pdf-js@3.0.2 requires a peer of react-dom@>=15 but none is installed. You must install peer dependencies yourself.
npm WARN worker-loader@1.1.0 requires a peer of webpack@^2.0.0 || ^3.0.0 but none is installed. You must install peer dependencies yourself.
react
& react-dom
are marked as peerDependencies
, but webpack
isn't.
Please add webpack
to the peerDependencies
, since this is a peerDependency of worker-loader
, which is a dependency of pdfjs-dist
.
I've added a similar issue upstream, so pdfjs-dist
will list webpack
as a peerDependency (mozilla/pdf.js#9248).
MichaelDeBoey commented
This is now patched by mozilla/pdf.js#9249 🙂
mikecousins commented
Nice, I'll try to get this updated then tomorrow.