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
- [ ] Regression (a behavior that used to work and stopped working in a new release)
- [ ] Bug report -> please search issues before submitting
- [x] Feature request
- [ ] Documentation issue or request
When I try to install ng2-pdf-viewer@4.1.2 in the project having webpack@3.10.0 npm logs the following error:
npm WARN worker-loader@0.8.1 requires a peer of webpack@>=0.9 <2 || ^2.1.0-beta || ^2.2.0 but none was installed.
This problem is happened, because
ng2-pdf-viewer depends on pdfjs-dist@1.9.489
pdfjs-dist@1.9.489 has dependency worker-loader@^0.8.0
worker-loader@0.8.1 (which is the latest version till 1.0.0) has the following peer dependency webpack: >=0.9 <2 || ^2.1.0-beta || ^2.2.0
worker-loader supports webpack@3.x.x starting from the version 1.0.0 (commit) pdfjs-dist supports worker-loader@1.x.x starting from the version 1.10.x (pull request)
Is it possible to update pdfjs-dist to version 1.10.x?
All is much worse when I use npm lock file, because when some constraints are not satisfied lock file is not updated.
npm WARN saveError Problems were encountered
npm WARN saveError Please correct and try again.
I have to use different workaround to keep lock file consistent, when new dependency is added into the project.
Bug Report or Feature Request (mark with an
x
)When I try to install
ng2-pdf-viewer@4.1.2
in the project havingwebpack@3.10.0
npm logs the following error:This problem is happened, because
ng2-pdf-viewer
depends onpdfjs-dist@1.9.489
pdfjs-dist@1.9.489
has dependencyworker-loader@^0.8.0
worker-loader@0.8.1
(which is the latest version till1.0.0
) has the following peer dependencywebpack
:>=0.9 <2 || ^2.1.0-beta || ^2.2.0
worker-loader
supportswebpack@3.x.x
starting from the version1.0.0
(commit)pdfjs-dist
supportsworker-loader@1.x.x
starting from the version1.10.x
(pull request)Is it possible to update
pdfjs-dist
to version1.10.x
?All is much worse when I use npm lock file, because when some constraints are not satisfied lock file is not updated.
I have to use different workaround to keep lock file consistent, when new dependency is added into the project.
Environment:
The text was updated successfully, but these errors were encountered: