"errorMessage": "self is not defined",

First time using serverless and I’m trying to deploy a lambda. I seem to be getting the error: “errorMessage”: “self is not defined”,

Did some googling and it seems to be an issue with webpack. I’m using node js. Has anyone experienced this issue and have a fix for it?

Thanks for any help

I suggest you upload a code sample or point to a repo, otherwise you won’t have much luck here, it might very well be an issue with Webpack.