jeffminsungkim / nestjs-multer-extended

💪 Extended MulterModule for NestJS with flexible S3 upload and helpful features
MIT License
202 stars 47 forks source link

Getting "declares 'ConfigurationOptions' locally, but it is not exported" after package upgrade #258

Closed klalex closed 3 years ago

klalex commented 3 years ago

node_modules/nestjs-multer-extended/dist/interfaces/multer-extended-s3-options.interface.d.ts:2:23 - error TS2459: Module '"../../../aws-sdk/lib/config"' declares 'ConfigurationOptions' locally, but it is not exported.

2 import { APIVersions, ConfigurationOptions } from 'aws-sdk/lib/config';


  node_modules/aws-sdk/lib/config.d.ts:2:21
    2 import {ConfigBase, ConfigurationOptions} from './config-base';
'ConfigurationOptions' is declared here.

Found 1 error(s).

choreo commented 3 years ago

It looks like it's due to aws-sdk type export breaking change. https://github.com/aws/aws-sdk-js/issues/3453 As of now(official latest v2.772.0), I force my app to use the older version(like v2.734.0 worked for me) by specifying "resolutions" in package.json.

pb-expa commented 3 years ago

Hey I created a temp fork for this for my personal use (I had a build to run), but all you have to do is change

import { APIVersions,ConfigurationOptions } from 'aws-sdk/lib/config';

to

import { APIVersions } from 'aws-sdk/lib/config'; import { ConfigurationOptions } from 'aws-sdk/lib/config-base';

in your multer-extended-s3-options.interface.ts

cheers

stale[bot] commented 3 years ago

Hello 👋, to help manage issues we automatically close stale issues.

This issue has been automatically marked as stale because it has not had activity for quite some time. Has this issue been fixed, or does it still require the community's attention?

This issue will be closed in 15 days if no further activity occurs. Thank you for your contributions.

sandeshgb commented 3 years ago

multer-bug I got the same issue today

"nestjs-multer-extended": "^1.4.1", "aws-sdk": "^2.805.0",

any update on this issue yet?

sandeshgb commented 3 years ago

Hello wave, to help manage issues we automatically close stale issues.

This issue has been automatically marked as stale because it has not had activity for quite some time. Has this issue been fixed, or does it still require the community's attention?

This issue will be closed in 15 days if no further activity occurs. Thank you for your contributions.

this isn't fixed yet. I got same error today when I installed the plugin.

stale[bot] commented 3 years ago

Hello 👋, to help manage issues we automatically close stale issues.

This issue has been automatically marked as stale because it has not had activity for quite some time. Has this issue been fixed, or does it still require the community's attention?

This issue will be closed in 15 days if no further activity occurs. Thank you for your contributions.

stale[bot] commented 3 years ago

Closing this issue after a prolonged period of inactivity. If this is still present in the latest release, please feel free to create a new issue with up-to-date information.

geranjian2 commented 3 years ago

node_modules/nestjs-multer-extended/dist/interfaces/multer-extended-s3-options.interface.d.ts:2:23 - error TS2459: Module '"../../../aws-sdk/lib/config"' declares 'ConfigurationOptions' locally, but it is not exported.

2 import { APIVersions, ConfigurationOptions } from 'aws-sdk/lib/config';


node_modules/aws-sdk/lib/config.d.ts:2:21
2 import {ConfigBase, ConfigurationOptions} from './config-base';

'ConfigurationOptions' is declared here.

Found 1 error(s).

not solution is error, persists