Issue with Node Module in defender-base-client

Out nowhere I started received an error with the include in the file
/node_modules/defender-base-client/lib/autotask/index.js
on line 7
const lambda_1 = __importDefault(require("aws-sdk/clients/lambda"));

This is throwing the error in the attached screenshot

This is a Next.js implementation that was working just fine, and started throwing this error and wont compile. I tried to reinstall the package

Hey @Alan_Sher! The aws-sdk client package is only required if the Relayer client is run within an Autotask, otherwise it's not loaded. Is it possible you changed something on your build pipeline that causes it to compile that dependency, even if unused?

Depending what you're using for building your project, you can ignore the aws-sdk/clients/lambda import to avoid the error (eg in webpack).