Skip to content

Layers + node_modules issue #84

@illusive-ch

Description

@illusive-ch

I might be doing this wrong however it seems when I use the @sparticuz/chrome-aws-lambda or any layer for that matter it negates everything that is inside my node_modules directory.

For example, I have these 2 lines of code

const chromium = require("@sparticuz/chrome-aws-lambda");
const { addExtra } = require('puppeteer-extra')
public function layers()
    {
        return [
            'arn:aws:lambda:us-west-1:764866452798:layer:chrome-aws-lambda:31'
        ];
    }

The lambda function can find "chrome-aws-lambda" using the layer but gives me this error when trying to find "puppeteer-extra"

If I get rid of the layer it will find the "puppeteer-extra"

Any thoughts on this or am I doing it completely wrong?

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