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

Open
can019 opened this issue Jul 12, 2022 · 0 comments
Open

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

can019 opened this issue Jul 12, 2022 · 0 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
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

1 participant