-
Notifications
You must be signed in to change notification settings - Fork 42
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
protons-runtime
dependency not resolving to the latest compatible version
#2174
Comments
Ah, right, I can confirm that 5.4.0 and 5.5.0 exist:
|
npm list from the above PR's branch -- no
|
A developer tagged https://github.com/Railgun-Community/waku-broadcaster-client/blob/main/packages/common/yarn.lock#L6476-L6491 , where the project linked above (the patch file) has a |
Error
SyntaxError: The requested module 'protons-runtime' does not provide an export named 'MaxLengthError'
Steps to Reproduce
Problem
protons-runtime
MaxLengthError class is currently used and is introduced in version 5.5.0, but install causes dependencyprotons-runtime
5.4.0 to be used.Evidence
See
protons-runtime
version comparison for add of MaxLengthError in latest version:protons-runtime
versions comparison: ipfs/protons@protons-runtime-5.4.0...protons-runtime-5.5.0See usage in
js-waku
packages/proto/package.json:js-waku/packages/proto/package.json
Line 47 in 75fcca4
npm ls protons-runtime
produces:Cause
It seems the
@waku/sdk
packages is not resolving to latest compatible version ofprotons-runtime
(i.e, 5.5.0 or later) despite using the caret (^
) in the version specification. I'm assuming it's because a few packages do not have ^5.4.0, so it defaults to 5.4.0 somehow.Solution
Maybe patch
@chainsafe/libp2p-gossipsub
to use^5.4.0
?Patching like so currently works (for anyone else having the issue): https://github.com/Railgun-Community/waku-broadcaster-client/blob/main/packages/web/patches/%40waku%2Bproto%2B0.0.8.patch
The text was updated successfully, but these errors were encountered: