HI I m using serverless-plugin-chrome with nodejs8.10
I am facing below issue when I am deploying using serverless deploy -v
Can someone please help me how to resolve this.
no such file or directory, unlink ///.js
and inside build folder i got this error.
const launch = require(’@serverless-chrome/lambda’)
const handler = require(’./p60ifcsr5id___routingProfilesUpdaterConfig.js’)
const options = {“flags”:[]}
module.exports.syncToDb = function ensureHeadlessChrome (
event,
context,
callback
) {
return (typeof launch === ‘function’ ? launch : launch.default)(options)
.then(instance =>
handler.syncToDb(event, context, callback, instance))
.catch((error) => {
console.error(
'Error occured in serverless-plugin-chrome wrapper when trying to ’ +
‘ensure Chrome for syncToDb() handler.’,
options,
error
)
callback(error)
})
}