ESM complains on the serverless-webpack/lib/validate.js using require

339 views Asked by At

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?

0

There are 0 answers