error filesize@10.0.5: The engine "node" is incompatible with this module. Expected version ">= 14.0.0". Got "12.22.10"
0xdevalias opened this issue · 3 comments
Are you certain it's a bug?
- Yes, it looks like a bug
Is the issue caused by a plugin?
- It is not a plugin issue
Are you using the latest v3 release?
- Yes, I'm using the latest v3 release
Is there an existing issue for this?
- I have searched existing issues, it hasn't been reported yet
Issue description
When using node version v12.22.10, installing any version after serverless@3.22.0 with yarn (or another package manager that respects the engines key in package.json) will error with the following:
error filesize@10.0.5: The engine "node" is incompatible with this module. Expected version ">= 14.0.0". Got "12.22.10"
error Found incompatible module.
This is due to the filesize bump from version 8.0.7 to version 10.0.5 introduced in:
I know that node v12 is EOL as of April 30 2022, so I don't really expect it to continue being supported. I mostly just wanted to document this here in case it helps anyone else in future, as there was no 'Breaking Change' notes documenting this in the CHANGELOG / release notes that I could see.
Service configuration (serverless.yml) content
N/ACommand name and used flags
N/A
Command output
N/AEnvironment information
N/A@0xdevalias great thanks for report. Yet, it might be an error on filesize side. See avoidwork/filesize.js#168 and avoidwork/filesize.js#161
Before taking that in, let's wait for final confirmation from them
@0xdevalias filesize acknowledged it as a bug in their metadata, and fixed that. v10 is safe to use in Node.js v12. I'm closing it then.
@medikoo Amazing! Thanks for checking and following up on this so quickly!