I had installed the plugin by following command in serverless 2.53.1.
npm install --save-dev serverless-s3-sync
After installing I had imported the plugin like this in serverless.yml
plugins:
- serverless-plugin-common-excludes
- serverless-plugin-include-dependencies
- serverless-python-requirements
- serverless-s3-sync
But (serverless deploy) is giving the following error. Screenshot of error is also attached. (This error only happens when I import this plugin of serverless-s3-sync in serverless.yml file other plugins are running fine).
ERROR DETAILS:
TypeError: Cannot read property 'defaultEncoding' of undefined at _write (node:internal/streams/writable:291:24) at WriteStream.Writable.write (node:internal/streams/writable:334:10) at NodejsStreamOutputAdapter.ondata (C:\serverless_v2\node_modules\readable-stream\lib_stream_readable.js:619:20) at NodejsStreamOutputAdapter.emit (node:events:394:28)
Here's a full error: