amplify-backend
amplify-backend copied to clipboard
Support Node v22 on ubuntu
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.
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.
Was able to reproduce the issue in ubuntu Ec2 instance.
using node 22:
using node 20: did not observe an error
Marking as bug for investigation.
The issue is with parcel watcher. see also https://github.com/parcel-bundler/watcher/issues/170#issuecomment-2310015386
@Amplifiyer looks like this got fixed in https://github.com/parcel-bundler/watcher/pull/195
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 !