Error: chokidar FSWatcher incorrectly implements interface fs FSWatcher.
Author: FreePhoenix888Created Mar 24, 2024Updated Jun 28, 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:
- Clone https://github.com/deep-foundation/deep-memo-app
- Run "Build and Publish" github workflow
- 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):
https://github.com/deep-foundation/sdk/actions/runs/7927782720
https://github.com/deep-foundation/deepcase-app/actions/runs/7448516931
OS: Ubuntu
Version 22.04
Additional Info I have two other projects that does not have this error.
- https://github.com/deep-foundation/sdk/
- https://github.com/deep-foundation/deepcase-app/ Here is what I have treid to check between them
- Checked that versions of capacitor dependencies are the same
- Checked that tsconfig is the same
- Checked that electron folder is the same
Source: capacitor-community/electron