You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can reproduce this issue when running this plugin on its own.
I am running this plugin on .d.ts files generated by TypeScript.
This issue is not related to rolling up @types.
Code Snipped
import{SecretsManagerClient,GetSecretValueCommand}from"@aws-sdk/client-secrets-manager";exportconstgetAwsSecrets=async(region: string,secretName: string)=>{constclient=newSecretsManagerClient({ region });constcommand=newGetSecretValueCommand({SecretId: secretName});constresponse=awaitclient.send(command);constsecrets=JSON.parse(response.SecretString);for(constkeyinsecrets){if(!process.env[key]){letval=secrets[key].trim()if(val==='false')val=falseif(val==='true')val=trueprocess.env[key]=valconsole.log(`env ${key} loaded from AWS Secrets Manager`)}else{console.log(`env ${key} loaded from AWS but not used because it is already set`)}}}
Error Message
error TS2339: Property 'send' does not exist on type 'SecretsManagerClient'.
Checklist
.d.ts
files generated by TypeScript.@types
.Code Snipped
Error Message
my rollup config
The text was updated successfully, but these errors were encountered: