I have a dependency to serevrless-webpack 5.7.1 and I have "type": "module" in the package.json. When I try to deploy the code using serverless, it complains on the use of require in serverless-webpack/lib/validate.js in which I do not have the control.
How can I mitigate this error?