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

Error: chokidar FSWatcher incorrectly implements interface fs FSWatcher. #282

Open
FreePhoenix888 opened this issue Mar 24, 2024 · 1 comment

Comments

@FreePhoenix888
Copy link

FreePhoenix888 commented Mar 24, 2024

Describe the bug
I pack my app by using this tool but for some reason get this error:

Error: node_modules/chokidar/types/index.d.ts(9,14): error TS2420: Class 'import("/home/runner/work/deep-memo-app/deep-memo-app/electron/node_modules/chokidar/types/index").FSWatcher' incorrectly implements interface 'import("fs").FSWatcher'.

https://github.com/deep-foundation/deep-memo-app/actions/runs/8401899560/job/23010763295#step:10:33

To Reproduce
Steps to reproduce the behavior:

  1. Clone https://github.com/deep-foundation/deep-memo-app
  2. Run "Build and Publish" github workflow
  3. Go to workflow's resuslt and see this error

Expected behavior
Work without this error as in other two projects with the same configuration (or maybe I miss something):

Additional Info
I have two other projects that does not have this error.

@klemmgebautes
Copy link

klemmgebautes commented Apr 6, 2024

Workaround, Work around until this is resolved is 'npm install @types/node@16.18.71',Explanation ref and unref were added in v14.3.0, v12.20.0 to Node.js but were missed in @types/node. Hint for more issues, npm install electron-updater@latest. do the installs in the electron subdir. now i can npm run electron:start, npm run electron:pack misses a tslib when running the build.

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

No branches or pull requests

2 participants