https://cypress.io logo
Cypress - Webpack - Cucumber preprocessor
# i-need-help
b
Hello, I'm trying to setup webpack for a potential workaround for resolving
import { fromNodeProviderChain } from '@aws-sdk/credential-providers';
error which was the following:
Copy code
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:
Copy code
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?