amplify-backend icon indicating copy to clipboard operation
amplify-backend copied to clipboard

Support Node v22 on ubuntu

Open p5 opened this issue 1 year ago • 5 comments

In response to https://github.com/aws-amplify/amplify-backend/issues/1804

Environment information

N/A

Description

Node v22 LTS is just around the corner, so it would be good to update Amplify CLI to at least not crash (https://github.com/aws-amplify/amplify-backend/issues/1804) when used with this version.

p5 avatar Aug 07 '24 13:08 p5

Hey @p5, thank you for reaching. Tried reproducing the error on MacOS with Node v22.6.0 but did not observe any errors on sandbox deploy. adding the investigating label to further dive into this.

ykethan avatar Aug 07 '24 20:08 ykethan

Was able to reproduce the issue in ubuntu Ec2 instance. using node 22: image (25)

using node 20: did not observe an error image (26)

Marking as bug for investigation.

ykethan avatar Aug 12 '24 20:08 ykethan

The issue is with parcel watcher. see also https://github.com/parcel-bundler/watcher/issues/170#issuecomment-2310015386

Amplifiyer avatar Aug 26 '24 15:08 Amplifiyer

@Amplifiyer looks like this got fixed in https://github.com/parcel-bundler/watcher/pull/195

hardchor avatar Mar 26 '25 13:03 hardchor

We can confirm that when forcing the version of watcher to 2.5.1 it works on node 22 :

  "resolutions": {
    "@parcel/watcher": "2.5.1"
  },

adding the resolution works, but would be cool if version is updated in the dependencies !

philippeauriach avatar Jul 02 '25 09:07 philippeauriach