Skip to content

Passing invalid argument types to fs.existsSync is deprecated #576

@RareScrap

Description

@RareScrap

When building an electron app with Electron Forge a new warning arise:

(node:23232) [DEP0187] DeprecationWarning: Passing invalid argument types to fs.existsSync is deprecated
    at Object.existsSync (node:fs:281:15)
    at C:\Users\my-app\node_modules\electron-winstaller\src\sign.ts:51:10
    at step (C:\Users\my-app\node_modules\electron-winstaller\lib\sign.js:56:23)
    at Object.next (C:\Users\my-app\node_modules\electron-winstaller\lib\sign.js:37:53)
    at C:\Users\my-app\node_modules\electron-winstaller\lib\sign.js:31:71
    at new Promise (<anonymous>)
    at __awaiter (C:\Users\my-app\node_modules\electron-winstaller\lib\sign.js:27:12)
    at resetSignTool (C:\Users\my-app\node_modules\electron-winstaller\lib\sign.js:127:12)
    at C:\Users\my-app\node_modules\electron-winstaller\src\index.ts:212:22
    at step (C:\Users\my-app\node_modules\electron-winstaller\lib\index.js:56:23)
    at Object.next (C:\Users\my-app\node_modules\electron-winstaller\lib\index.js:37:53)
    at fulfilled (C:\Users\my-app\node_modules\electron-winstaller\lib\index.js:28:58)
    at processTicksAndRejections (node:internal/process/task_queues:103:5)

Node version - v24.13.0
Electron Forge version - v7.11.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions