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?
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
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?