ca98am79 / connect-dynamodb

DynamoDB session store for Connect
http://ca98am79.github.com/connect-dynamodb/
MIT License
144 stars 66 forks source link

Error TS2666: Exports and export assignments are not permitted in module augmentations. #81

Closed okko closed 10 months ago

okko commented 1 year ago
tsc -v
Version 5.0.4
tsc
node_modules/connect-dynamodb/index.d.ts:10:3 - error TS2666: Exports and export assignments are not permitted in module augmentations.

10   export = ConnectDynamoDB;
     ~~~~~~
l4rd commented 1 year ago

I have this issue as well - was hoping to use the AWS SDK V3 compliant version but unable to do so because of this.

PratikDarak commented 1 year ago

+1 Please update this thread if you find any workaround for this. I am also checking.

yutak23 commented 10 months ago

If you set skipLibCheck in tsconfig to true, I think the compilation will pass.

I was trying to reproduce this error, and skipLibCheck being false results in a compile error. When true, there was no error.

However, I admit that this is not an essential solution.

{
    "compilerOptions": {
        "skipLibCheck": true, // <- default value is false, so we explicitly set to true
    },
}