Serverless deploy issue with Headless chrome

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)
})

}

Hey @SwethaM.R,

Slightly off topic but was also struggling a bit with Headless Chrome.
So ended up using https://www.npmjs.com/package/chrome-aws-lambda as a lambda layer instead, relatively easy to set up and use. Instructions available on that page

Best
F

Thanks for the reply, I somehow resolved this issue by separating the module.exports which was in same js file. I will try your solution also and let you know the update.