Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TS2691 when compiling type reference from version 7.1.1 #1166

Closed
scarrico-divergent opened this issue Jun 3, 2023 · 2 comments · Fixed by #1167
Closed

TS2691 when compiling type reference from version 7.1.1 #1166

scarrico-divergent opened this issue Jun 3, 2023 · 2 comments · Fixed by #1167

Comments

@scarrico-divergent
Copy link

I have a library that uses type references from minio ie

import type { Client as MinioClient, ItemBucketMetadata, ResultCallback, UploadedObjectInfo } from "minio";

since recent upgrade to the latest release, it has started producing

node_modules/minio/dist/main/minio.d.ts:20:29 - error TS2691: An import path cannot end with a '.ts' extension. Consider importing './internal/s3-endpoints' instead.

20 export type { Region } from './internal/s3-endpoints.ts'

would it be possible to remove the .ts extension from the definition file?

@LiangliangSui
Copy link

I also encountered the same problem, is there a solution?

@aldy505
Copy link
Contributor

aldy505 commented Jun 8, 2023

@LiangliangSui wait for #1167

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants