Skip to content

Cannot find module imagemin-pngquant #2

Description

@dariospadoni

Hello
I built the script with Vagrant, uploaded the zip file to S3 but I get this error when I test the function:

  "errorMessage": "Cannot find module 'imagemin-pngquant'",
  "errorType": "Error",
  "stackTrace": [
    "Object.<anonymous> (/var/task/lib/ImageProcessor.js:10:26)",
    "Module._compile (module.js:409:26)",
    "Object.Module._extensions..js (module.js:416:10)",
    "Module.load (module.js:343:32)",
    "Function.Module._load (module.js:300:12)",
    "Module.require (module.js:353:17)"
  ]
}```

I can see the imagemin-pngquant package inside the zip file...any idea?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions