Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Node 12 support dropped with #3245 #3270

Closed
mitchellbusby opened this issue Sep 4, 2020 · 12 comments · Fixed by #3271
Closed

Node 12 support dropped with #3245 #3270

mitchellbusby opened this issue Sep 4, 2020 · 12 comments · Fixed by #3271
Labels
need/triage Needs initial labeling and prioritization

Comments

@mitchellbusby
Copy link

  • Version:

IPFS 0.5+

  • Platform:

N/A - not platform specific

  • Subsystem:

N/A - ipfs core related

Severity:

High/Medium

Description:

merge-options dropped support for Node 12 with their 3.x release, which IPFS just bumped up. This causes Node 12 install to fail.

Raising on the off chance this was missed -- it might be entirely intentional.

Steps to reproduce the error:

Try to install ipfs under node 12 -- the install of merge-options will fail.

@mitchellbusby mitchellbusby added the need/triage Needs initial labeling and prioritization label Sep 4, 2020
@welcome
Copy link

welcome bot commented Sep 4, 2020

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:

  • "Priority" labels will show how urgent this is for the team.
  • "Status" labels will show if this is ready to be worked on, blocked, or in progress.
  • "Need" labels will indicate if additional input or analysis is required.

Finally, remember to use https://discuss.ipfs.io if you just need general support.

@mitchellbusby
Copy link
Author

Not sure how severe this actually is -- was a minor annoyance for me -- there may not actually be an intention to support node 12 at this stage, but I was surprised since it's the current LTS variant.

@achingbrain
Copy link
Member

achingbrain commented Sep 4, 2020

We run CI under node 12 which passes (docker publish step notwithstanding) and I can't replicate this locally. What's the error you are seeing?

@BlackGlory
Copy link

@achingbrain Node.js 12 LTS, first install ipfs-http-client v46.0.1, then upgrade it to v46.1.0, you will get:

error merge-options@3.0.1: The engine "node" is incompatible with this module. Expected version ">=14". Got "12.18.3"
Done in 10.69s.
Error: Found incompatible module.
    at MessageError.ExtendableBuiltin (/usr/share/yarn/lib/cli.js:721:66)
    at new MessageError (/usr/share/yarn/lib/cli.js:750:123)
    at checkOne (/usr/share/yarn/lib/cli.js:48058:11)
    at Object.check (/usr/share/yarn/lib/cli.js:48077:5)
    at /usr/share/yarn/lib/cli.js:7348:73
    at Generator.next (<anonymous>)
    at step (/usr/share/yarn/lib/cli.js:310:30)
    at /usr/share/yarn/lib/cli.js:321:13

@achingbrain
Copy link
Member

Are you running with engine-strict = true?

@achingbrain
Copy link
Member

Ah, yarn.

@achingbrain
Copy link
Member

It's a bit tedious, merge-options does have engines >= 14 in it's package.json since it's been rewritten to esm modules but is also published transpiled to common js and doesn't use any node 14 features, hence no CI failure.

@mitchellbusby
Copy link
Author

Ahhh that makes sense - I was also using yarn 😅

@mitchellbusby
Copy link
Author

@achingbrain is it possible to drop down to the previous version or is that a needed peer dep?

@mitchellbusby
Copy link
Author

(To be clear this isn’t pressing for me - I’m stuck on older versions by way of OrbitDB)

@achingbrain
Copy link
Member

Yes, I'll downgrade and publish a new version.

achingbrain added a commit to ipfs/js-ipfs-unixfs that referenced this issue Sep 4, 2020
Downgrades merge-options because v3 removed node 12 support.

Refs: ipfs/js-ipfs#3270
Refs: schnittstabil/merge-options#23
achingbrain added a commit to ipfs/js-ipfs-unixfs that referenced this issue Sep 4, 2020
Downgrades merge-options because v3 removed node 12 support.

Refs: ipfs/js-ipfs#3270
Refs: schnittstabil/merge-options#23
achingbrain added a commit that referenced this issue Sep 4, 2020
Downgrades merge-options because v3 removed node 12 support.

Fixes: #3270
Refs: schnittstabil/merge-options#23
achingbrain added a commit that referenced this issue Sep 4, 2020
Downgrades merge-options because v3 removed node 12 support.

Fixes: #3270
Refs: schnittstabil/merge-options#23
@achingbrain
Copy link
Member

Fixed in ipfs@0.50.1

SgtPooki pushed a commit to ipfs/js-kubo-rpc-client that referenced this issue Aug 18, 2022
Downgrades merge-options because v3 removed node 12 support.

Fixes: ipfs/js-ipfs#3270
Refs: schnittstabil/merge-options#23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
need/triage Needs initial labeling and prioritization
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants