Closed kuzdogan closed 1 year ago
Thank you for submitting your first issue to this repository! A maintainer will be here shortly to triage and review. In the meantime, please double-check that you have provided all the necessary information to make this process easy! Any information that can help save additional round trips is useful! We currently aim to give initial feedback within two business days. If this does not happen, feel free to leave a comment. Please keep an eye on how this issue will be labeled, as labels give an overview of priorities, assignments and additional actions requested by the maintainers:
Finally, remember to use https://discuss.ipfs.io if you just need general support.
Sorting out node-fetch situation is wip, see #154
Any updates?
Fixed by #244
Recently we removed the
ipfs
dependency in our repository to opt-in for the lightweightipfs-core
package for our tests. Our repository already hasnode-fetch
package and following the installation ofipfs-core@0.12.2
and subsequentlyipfs-utils@9.0.2
our builds started to fail.The reason seems to be the custom node package used in this repo:
node-fetch@npm:@achingbrain/node-fetch@2.6.7
. Our othernode-fetch
packages had@^2.6.x
and since the latest official package is2.6.6
the custom@acingbrain/node-fetch@2.6.7
overrides others.We get the following error in our builds.
Reproducing
To reproduce follow these steps.
Our builds are on CircleCI. Spin up the CircleCI node container
In the container terminal cd into circleci folder
Clone the repository and cd
Checkout the relevant commit. (See the branch on GitHub )
Install dependencies
Note that
--ci
flag is used. This is automatically detected in the CircleCI build environment. Local installs without this flag will not fail.Fix
I was able to fix the issue by setting the
node-fetch@^2.6.1
on our repo to fixednode-fetch@2.6.6.
Then removing thepackage-lock.json
files and running annpm install
.This results with two different
node-fetch
modules being used as intended:A better way to handle this would be to name the custom
node-fetch
in this repo with an alias so that it does not interfere with othernode-fetch
versions.