blue-battery-71202
03/20/2023, 11:43 AMimport { fromNodeProviderChain } from '@aws-sdk/credential-providers'; error which was the following:
ts
'import' and 'export' may appear only with 'sourceType: module'
I've tried turning esModuleInterop: false however, that would conclude in some of our dependencies can not resolve like this:
ts
import aws from 'aws-sdk'
aws.config.update({'us-east-1'})
When opening cypress it throws "aws can be undefined"
Our setup consist of both cucumber test cases, and simple it(...) test cases as well.
Anyone has any idea where could I start investigating potential fixes?