Skip to content

Deploy produces an error: cannot find module '../lib/plugins/aws/lib/monitorStack' #217

@ShtiviGrin

Description

@ShtiviGrin

Hi,
I'm trying to use this package in my project and I ran into a strange issue.

My serverless.yml file looks as follows:

service: "sls-alias-test"

plugins:
  - serverless-aws-alias

provider:
  name: aws
  runtime: nodejs14.x
  region: us-east-1

functions:
  foo:
    handler: src/index.handler

and when I run sls deploy --alias v1 I get the following error:

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

package.json:

{
  "name": "sls-alias-test",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "keywords": [],
  "author": "",
  "license": "ISC",
  "devDependencies": {
    "serverless": "^3.18.2",
    "serverless-aws-alias-fixed": "^2.0.1"
  }
}

have anyone else ran into that issue and managed to figure it out?
thanks!

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