Skip to content

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

Open
@arunaagarwal

Description

@arunaagarwal

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions