{
"errorType": "Runtime.UnhandledPromiseRejection",
"errorMessage": "Error: The environment variable CHROME_PATH must be set to executable of a build of Chromium version 54.0 or later.",
"trace": [
"Runtime.UnhandledPromiseRejection: Error: The environment variable CHROME_PATH must be set to executable of a build of Chromium version 54.0 or later.",
" at process.<anonymous> (/var/runtime/index.js:35:15)",
" at process.emit (events.js:314:20)",
" at processPromiseRejections (internal/process/promises.js:209:33)",
" at processTicksAndRejections (internal/process/task_queues.js:98:32)"
]
}
I'm trying to make this run but can't cause of that message. My code is as follows:
I'm trying to make this run but can't cause of that message. My code is as follows:
And have an env variable called CHROME_PATH which has this path assigned
/opt/nodejs/node_modules/chrome-aws-lambda/chromium.br