serverless-aws-alias icon indicating copy to clipboard operation
serverless-aws-alias copied to clipboard

npm serverless-aws-alias-v3 issue - Not attaching all used dependencies in build

Open arunaagarwal opened this issue 2 years ago • 0 comments
trafficstars

Upgrading Node 14 to Node 16 and all other dependencies. Tried to upgrade serverless npm to "serverless": "^3.28.1" and faced the following issue: Error: Cannot find module '/Users/user/Desktop/Code/sls-alias-test/node_modules/serverless/lib/plugins/aws/lib/monitorStack'

  • /Users/user/Desktop/Code/sls-alias-test/node_modules/serverless-aws-alias-fixed/index.js
  • /Users/user/Desktop/Code/sls-alias-test/node_modules/serverless/lib/utils/import-module.js
  • /Users/user/Desktop/Code/sls-alias-test/node_modules/serverless/lib/classes/plugin-manager.js

To resolve the above one, used "serverless-aws-alias-v3": "^3.2.0" as suggested in further serverless forum discussions. This worked fine to remove the error but dependencies/ dependent files are not getting attach to the respective build.

arunaagarwal avatar Apr 21 '23 13:04 arunaagarwal