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

[BUG] File-selector interface error(TS2430) on electron #58

Closed
can019 opened this issue Jul 12, 2022 · 3 comments
Closed

[BUG] File-selector interface error(TS2430) on electron #58

can019 opened this issue Jul 12, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@can019
Copy link

can019 commented Jul 12, 2022

Describe the bug
TS2430 on file-selector interface

To Reproduce

Expected behavior
None
Screenshots

스크린샷 2022-07-12 오후 1 50 05

node_modules/file-selector/dist/file.d.ts:3:18 - error TS2430: Interface 'FileWithPath' incorrectly extends interface 'File'.
  Types of property 'path' are incompatible.
    Type 'string | undefined' is not assignable to type 'string'.
      Type 'undefined' is not assignable to type 'string'.
3 export interface FileWithPath extends File {
                 ~~~~~~~~~~~~

Desktop (please complete the following information):

  • OS: [Ubuntu-latest]
  • Browser [Electron]
  • Version [0.6.0]

Additional context
In the meantime, I've added this setting to tsconfig.json to suppress this error by

{
  "compilerOptions": {
    "skipLibCheck": true,
    ...
}

However, I wrote an issue because it is a bug that needs to be solved one day.

@can019 can019 added the bug Something isn't working label Jul 12, 2022
@rolandjitsu
Copy link
Collaborator

@can019 is this still an issue?

@can019
Copy link
Author

can019 commented Oct 7, 2024

@can019 is this still an issue?

@rolandjitsu
I'm not currently using this library, so I'm not sure if the bug still exists, sorry.

@rolandjitsu
Copy link
Collaborator

@can019 ok, gonna go ahead and close the issue. If you ever use the lib again and get the same issue we can re-open it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants