Skip to content

Multiple (node:17870) [DEP0174] DeprecationWarning: Calling promisify on a function that returns a Promise is likely a mistake. #3828

Open
@eXhumer

Description

Pre-flight checklist

  • I have read the contribution documentation for this project.
  • I agree to follow the code of conduct that this project uses.
  • I have searched the issue tracker for a bug that matches the one I want to file, without success.

Electron Forge version

7.4.0

Electron version

v30.0.1

Operating system

macOS 14.4.1 (darwin/arm64)

Last known working Electron Forge version

No response

Expected behavior

No deprecation warning when running package or make scripts.

Actual behavior

Multiple (node:17870) [DEP0174] DeprecationWarning: Calling promisify on a function that returns a Promise is likely a mistake. warnings in console.

For macOS universal builds, I have to use a packageAfterExtract hook to delete a file in macOS application package. For macOS/Windows builds, I am also having to run a postPackage hook modify the package slightly to add a file and for code signing / notarization. With or without these hooks added, I keep getting those warnings multiple times while running package or make scripts, even on a clean npm create electron-app output. I added NODE_OPTIONS=--trace-deprecation to get more information regarding this and all of it seems to be caused by promisifyHooks.

Console output with warnings
(.venv) ➜  exhumer@EXHUMER-MACBOOK-AIR  ~/Projects/exviewer git:(main) ✗ npm run package

> [email protected] package
> electron-forge package

✔ Checking your system
✔ Preparing to package application
✔ Running packaging hooks
  ✔ Running generateAssets hook
  ✔ Running prePackage hook
    ✔ [plugin-webpack] Preparing webpack bundles
      ✔ Preparing native dependencies [0.2s]
      ✔ Building webpack bundles [14s]
✔ Packaging application
  ✔ Packaging for arm64 on darwin [1s]
✔ Running postPackage hook
  ✔ Running postPackage hook from forgeConfig

(node:7862) [DEP0174] DeprecationWarning: Calling promisify on a function that returns a Promise is likely a mistake.
(Use `node --trace-deprecation ...` to show where the warning was created)
(node:7862) [DEP0174] DeprecationWarning: Calling promisify on a function that returns a Promise is likely a mistake.
(node:7862) [DEP0174] DeprecationWarning: Calling promisify on a function that returns a Promise is likely a mistake.
(node:7862) [DEP0174] DeprecationWarning: Calling promisify on a function that returns a Promise is likely a mistake.
(node:7862) [DEP0174] DeprecationWarning: Calling promisify on a function that returns a Promise is likely a mistake.
(node:7862) [DEP0174] DeprecationWarning: Calling promisify on a function that returns a Promise is likely a mistake.
(node:7862) [DEP0174] DeprecationWarning: Calling promisify on a function that returns a Promise is likely a mistake.
(node:7862) [DEP0174] DeprecationWarning: Calling promisify on a function that returns a Promise is likely a mistake.
(node:7862) [DEP0174] DeprecationWarning: Calling promisify on a function that returns a Promise is likely a mistake.
(node:7862) [DEP0174] DeprecationWarning: Calling promisify on a function that returns a Promise is likely a mistake.
(node:7862) [DEP0174] DeprecationWarning: Calling promisify on a function that returns a Promise is likely a mistake.
(node:7862) [DEP0174] DeprecationWarning: Calling promisify on a function that returns a Promise is likely a mistake.
(node:7862) [DEP0174] DeprecationWarning: Calling promisify on a function that returns a Promise is likely a mistake.
(.venv) ➜  exhumer@EXHUMER-MACBOOK-AIR  ~/Projects/exviewer git:(main) ✗ NODE_OPTIONS=--trace-deprecation npm run package

> [email protected] package
> electron-forge package

✔ Checking your system
✔ Preparing to package application
✔ Running packaging hooks
  ✔ Running generateAssets hook
  ✔ Running prePackage hook
    ✔ [plugin-webpack] Preparing webpack bundles
      ✔ Preparing native dependencies [0.2s]
      ✔ Building webpack bundles [14s]
✔ Packaging application
  ✔ Packaging for arm64 on darwin [1s]
✔ Running postPackage hook
  ✔ Running postPackage hook from forgeConfig

(node:14367) [DEP0174] DeprecationWarning: Calling promisify on a function that returns a Promise is likely a mistake.
    at node:internal/util:431:17
    at new Promise (<anonymous>)
    at AsyncFunction.<anonymous> (node:internal/util:416:12)
    at /Users/exhumer/Projects/exviewer/node_modules/@electron/packager/src/hooks.ts:9:59
    at Array.map (<anonymous>)
    at promisifyHooks (/Users/exhumer/Projects/exviewer/node_modules/@electron/packager/src/hooks.ts:9:27)
    at packager (/Users/exhumer/Projects/exviewer/node_modules/@electron/packager/src/packager.ts:243:23)
(node:14367) [DEP0174] DeprecationWarning: Calling promisify on a function that returns a Promise is likely a mistake.
    at node:internal/util:431:17
    at new Promise (<anonymous>)
    at node:internal/util:416:12
    at AsyncFunction.<anonymous> (/Users/exhumer/Projects/exviewer/node_modules/@electron-forge/core/src/api/package.ts:49:32)
    at node:internal/util:430:21
    at new Promise (<anonymous>)
    at AsyncFunction.<anonymous> (node:internal/util:416:12)
    at /Users/exhumer/Projects/exviewer/node_modules/@electron/packager/src/hooks.ts:9:59
    at Array.map (<anonymous>)
    at promisifyHooks (/Users/exhumer/Projects/exviewer/node_modules/@electron/packager/src/hooks.ts:9:27)
    at Packager.extractElectronZip (/Users/exhumer/Projects/exviewer/node_modules/@electron/packager/src/packager.ts:78:25)
    at async Packager.createApp (/Users/exhumer/Projects/exviewer/node_modules/@electron/packager/src/packager.ts:103:5)
    at async Promise.all (index 0)
    at async packager (/Users/exhumer/Projects/exviewer/node_modules/@electron/packager/src/packager.ts:246:20)
(node:14367) [DEP0174] DeprecationWarning: Calling promisify on a function that returns a Promise is likely a mistake.
    at node:internal/util:431:17
    at new Promise (<anonymous>)
    at AsyncFunction.<anonymous> (node:internal/util:416:12)
    at /Users/exhumer/Projects/exviewer/node_modules/@electron/packager/src/hooks.ts:9:59
    at Array.map (<anonymous>)
    at promisifyHooks (/Users/exhumer/Projects/exviewer/node_modules/@electron/packager/src/hooks.ts:9:27)
    at Packager.extractElectronZip (/Users/exhumer/Projects/exviewer/node_modules/@electron/packager/src/packager.ts:78:25)
    at async Packager.createApp (/Users/exhumer/Projects/exviewer/node_modules/@electron/packager/src/packager.ts:103:5)
    at async Promise.all (index 0)
    at async packager (/Users/exhumer/Projects/exviewer/node_modules/@electron/packager/src/packager.ts:246:20)
(node:14367) [DEP0174] DeprecationWarning: Calling promisify on a function that returns a Promise is likely a mistake.
    at node:internal/util:431:17
    at new Promise (<anonymous>)
    at node:internal/util:416:12
    at AsyncFunction.<anonymous> (/Users/exhumer/Projects/exviewer/node_modules/@electron-forge/core/src/api/package.ts:49:32)
    at node:internal/util:430:21
    at new Promise (<anonymous>)
    at AsyncFunction.<anonymous> (node:internal/util:416:12)
    at /Users/exhumer/Projects/exviewer/node_modules/@electron/packager/src/hooks.ts:9:59
    at Array.map (<anonymous>)
    at promisifyHooks (/Users/exhumer/Projects/exviewer/node_modules/@electron/packager/src/hooks.ts:9:27)
    at MacApp.copyTemplate (/Users/exhumer/Projects/exviewer/node_modules/@electron/packager/src/platform.ts:160:25)
    at async MacApp.buildApp (/Users/exhumer/Projects/exviewer/node_modules/@electron/packager/src/platform.ts:148:5)
    at async MacApp.initialize (/Users/exhumer/Projects/exviewer/node_modules/@electron/packager/src/platform.ts:141:7)
    at async MacApp.create (/Users/exhumer/Projects/exviewer/node_modules/@electron/packager/src/mac.ts:435:5)
    at async Promise.all (index 0)
    at async packager (/Users/exhumer/Projects/exviewer/node_modules/@electron/packager/src/packager.ts:246:20)
(node:14367) [DEP0174] DeprecationWarning: Calling promisify on a function that returns a Promise is likely a mistake.
    at node:internal/util:431:17
    at new Promise (<anonymous>)
    at AsyncFunction.<anonymous> (node:internal/util:416:12)
    at /Users/exhumer/Projects/exviewer/node_modules/@electron/packager/src/hooks.ts:9:59
    at Array.map (<anonymous>)
    at promisifyHooks (/Users/exhumer/Projects/exviewer/node_modules/@electron/packager/src/hooks.ts:9:27)
    at MacApp.copyTemplate (/Users/exhumer/Projects/exviewer/node_modules/@electron/packager/src/platform.ts:160:25)
    at async MacApp.buildApp (/Users/exhumer/Projects/exviewer/node_modules/@electron/packager/src/platform.ts:148:5)
    at async MacApp.initialize (/Users/exhumer/Projects/exviewer/node_modules/@electron/packager/src/platform.ts:141:7)
    at async MacApp.create (/Users/exhumer/Projects/exviewer/node_modules/@electron/packager/src/mac.ts:435:5)
    at async Promise.all (index 0)
    at async packager (/Users/exhumer/Projects/exviewer/node_modules/@electron/packager/src/packager.ts:246:20)
(node:14367) [DEP0174] DeprecationWarning: Calling promisify on a function that returns a Promise is likely a mistake.
    at node:internal/util:431:17
    at new Promise (<anonymous>)
    at node:internal/util:416:12
    at AsyncFunction.<anonymous> (/Users/exhumer/Projects/exviewer/node_modules/@electron-forge/core/src/api/package.ts:49:32)
(node:14367) [DEP0174] DeprecationWarning: Calling promisify on a function that returns a Promise is likely a mistake.
    at node:internal/util:431:17
    at new Promise (<anonymous>)
    at node:internal/util:416:12
    at AsyncFunction.<anonymous> (/Users/exhumer/Projects/exviewer/node_modules/@electron-forge/core/src/api/package.ts:49:32)
(node:14367) [DEP0174] DeprecationWarning: Calling promisify on a function that returns a Promise is likely a mistake.
    at node:internal/util:431:17
    at new Promise (<anonymous>)
    at node:internal/util:416:12
    at AsyncFunction.<anonymous> (/Users/exhumer/Projects/exviewer/node_modules/@electron-forge/core/src/api/package.ts:49:32)
(node:14367) [DEP0174] DeprecationWarning: Calling promisify on a function that returns a Promise is likely a mistake.
    at node:internal/util:431:17
    at new Promise (<anonymous>)
    at node:internal/util:416:12
    at AsyncFunction.<anonymous> (/Users/exhumer/Projects/exviewer/node_modules/@electron-forge/core/src/api/package.ts:49:32)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
(node:14367) [DEP0174] DeprecationWarning: Calling promisify on a function that returns a Promise is likely a mistake.
    at node:internal/util:431:17
    at new Promise (<anonymous>)
    at node:internal/util:416:12
    at AsyncFunction.<anonymous> (/Users/exhumer/Projects/exviewer/node_modules/@electron-forge/core/src/api/package.ts:49:32)
    at node:internal/util:430:21
    at new Promise (<anonymous>)
    at AsyncFunction.<anonymous> (node:internal/util:416:12)
    at /Users/exhumer/Projects/exviewer/node_modules/@electron/packager/src/hooks.ts:9:59
    at Array.map (<anonymous>)
    at promisifyHooks (/Users/exhumer/Projects/exviewer/node_modules/@electron/packager/src/hooks.ts:9:27)
    at MacApp.copyTemplate (/Users/exhumer/Projects/exviewer/node_modules/@electron/packager/src/platform.ts:162:27)
    at async MacApp.buildApp (/Users/exhumer/Projects/exviewer/node_modules/@electron/packager/src/platform.ts:148:5)
    at async MacApp.initialize (/Users/exhumer/Projects/exviewer/node_modules/@electron/packager/src/platform.ts:141:7)
    at async MacApp.create (/Users/exhumer/Projects/exviewer/node_modules/@electron/packager/src/mac.ts:435:5)
    at async Promise.all (index 0)
    at async packager (/Users/exhumer/Projects/exviewer/node_modules/@electron/packager/src/packager.ts:246:20)
(node:14367) [DEP0174] DeprecationWarning: Calling promisify on a function that returns a Promise is likely a mistake.
    at node:internal/util:431:17
    at new Promise (<anonymous>)
    at AsyncFunction.<anonymous> (node:internal/util:416:12)
    at /Users/exhumer/Projects/exviewer/node_modules/@electron/packager/src/hooks.ts:9:59
    at Array.map (<anonymous>)
    at promisifyHooks (/Users/exhumer/Projects/exviewer/node_modules/@electron/packager/src/hooks.ts:9:27)
    at MacApp.copyTemplate (/Users/exhumer/Projects/exviewer/node_modules/@electron/packager/src/platform.ts:162:27)
    at async MacApp.buildApp (/Users/exhumer/Projects/exviewer/node_modules/@electron/packager/src/platform.ts:148:5)
    at async MacApp.initialize (/Users/exhumer/Projects/exviewer/node_modules/@electron/packager/src/platform.ts:141:7)
    at async MacApp.create (/Users/exhumer/Projects/exviewer/node_modules/@electron/packager/src/mac.ts:435:5)
    at async Promise.all (index 0)
    at async packager (/Users/exhumer/Projects/exviewer/node_modules/@electron/packager/src/packager.ts:246:20)
(node:14367) [DEP0174] DeprecationWarning: Calling promisify on a function that returns a Promise is likely a mistake.
    at node:internal/util:431:17
    at new Promise (<anonymous>)
    at node:internal/util:416:12
    at AsyncFunction.<anonymous> (/Users/exhumer/Projects/exviewer/node_modules/@electron-forge/core/src/api/package.ts:49:32)
    at node:internal/util:430:21
    at new Promise (<anonymous>)
    at AsyncFunction.<anonymous> (node:internal/util:416:12)
    at /Users/exhumer/Projects/exviewer/node_modules/@electron/packager/src/hooks.ts:9:59
    at Array.map (<anonymous>)
    at promisifyHooks (/Users/exhumer/Projects/exviewer/node_modules/@electron/packager/src/hooks.ts:9:27)
    at MacApp.move (/Users/exhumer/Projects/exviewer/node_modules/@electron/packager/src/platform.ts:293:27)
    at async Promise.all (index 0)
    at async packager (/Users/exhumer/Projects/exviewer/node_modules/@electron/packager/src/packager.ts:246:20)
(node:14367) [DEP0174] DeprecationWarning: Calling promisify on a function that returns a Promise is likely a mistake.
    at node:internal/util:431:17
    at new Promise (<anonymous>)
    at AsyncFunction.<anonymous> (node:internal/util:416:12)
    at /Users/exhumer/Projects/exviewer/node_modules/@electron/packager/src/hooks.ts:9:59
    at Array.map (<anonymous>)
    at promisifyHooks (/Users/exhumer/Projects/exviewer/node_modules/@electron/packager/src/hooks.ts:9:27)
    at MacApp.move (/Users/exhumer/Projects/exviewer/node_modules/@electron/packager/src/platform.ts:293:27)
    at async Promise.all (index 0)
    at async packager (/Users/exhumer/Projects/exviewer/node_modules/@electron/packager/src/packager.ts:246:20)
(.venv) ➜  exhumer@EXHUMER-MACBOOK-AIR  ~/Projects/exviewer git:(main) ✗ NODE_OPTIONS=--trace-deprecation DEBUG=1 npm run package

> [email protected] package
> electron-forge package

✔ Checking your system
❯ Preparing to package application
✔ Preparing to package application
❯ Running packaging hooks
❯ Running generateAssets hook
✔ Running generateAssets hook
❯ Running prePackage hook
❯ [plugin-webpack] Preparing webpack bundles
❯ Preparing native dependencies for arm64
✔ Preparing native dependencies
❯ Building webpack bundles
✔ Building webpack bundles
✔ [plugin-webpack] Preparing webpack bundles
✔ Running prePackage hook
✔ Running packaging hooks
❯ Packaging application
› Determining targets...
❯ Packaging for arm64 on darwin
❯ Copying files
❯ Preparing native dependencies
❯ Finalizing package
(node:17870) [DEP0174] DeprecationWarning: Calling promisify on a function that returns a Promise is likely a mistake.
    at node:internal/util:431:17
    at new Promise (<anonymous>)
    at AsyncFunction.<anonymous> (node:internal/util:416:12)
    at /Users/exhumer/Projects/exviewer/node_modules/@electron/packager/src/hooks.ts:9:59
    at Array.map (<anonymous>)
    at promisifyHooks (/Users/exhumer/Projects/exviewer/node_modules/@electron/packager/src/hooks.ts:9:27)
    at packager (/Users/exhumer/Projects/exviewer/node_modules/@electron/packager/src/packager.ts:243:23)
(node:17870) [DEP0174] DeprecationWarning: Calling promisify on a function that returns a Promise is likely a mistake.
    at node:internal/util:431:17
    at new Promise (<anonymous>)
    at node:internal/util:416:12
    at AsyncFunction.<anonymous> (/Users/exhumer/Projects/exviewer/node_modules/@electron-forge/core/src/api/package.ts:49:32)
    at node:internal/util:430:21
    at new Promise (<anonymous>)
    at AsyncFunction.<anonymous> (node:internal/util:416:12)
    at /Users/exhumer/Projects/exviewer/node_modules/@electron/packager/src/hooks.ts:9:59
    at Array.map (<anonymous>)
    at promisifyHooks (/Users/exhumer/Projects/exviewer/node_modules/@electron/packager/src/hooks.ts:9:27)
    at Packager.extractElectronZip (/Users/exhumer/Projects/exviewer/node_modules/@electron/packager/src/packager.ts:78:25)
    at async Packager.createApp (/Users/exhumer/Projects/exviewer/node_modules/@electron/packager/src/packager.ts:103:5)
    at async Promise.all (index 0)
    at async packager (/Users/exhumer/Projects/exviewer/node_modules/@electron/packager/src/packager.ts:246:20)
(node:17870) [DEP0174] DeprecationWarning: Calling promisify on a function that returns a Promise is likely a mistake.
    at node:internal/util:431:17
    at new Promise (<anonymous>)
    at AsyncFunction.<anonymous> (node:internal/util:416:12)
    at /Users/exhumer/Projects/exviewer/node_modules/@electron/packager/src/hooks.ts:9:59
    at Array.map (<anonymous>)
    at promisifyHooks (/Users/exhumer/Projects/exviewer/node_modules/@electron/packager/src/hooks.ts:9:27)
    at Packager.extractElectronZip (/Users/exhumer/Projects/exviewer/node_modules/@electron/packager/src/packager.ts:78:25)
    at async Packager.createApp (/Users/exhumer/Projects/exviewer/node_modules/@electron/packager/src/packager.ts:103:5)
    at async Promise.all (index 0)
    at async packager (/Users/exhumer/Projects/exviewer/node_modules/@electron/packager/src/packager.ts:246:20)
✔ Copying files
(node:17870) [DEP0174] DeprecationWarning: Calling promisify on a function that returns a Promise is likely a mistake.
    at node:internal/util:431:17
    at new Promise (<anonymous>)
    at node:internal/util:416:12
    at AsyncFunction.<anonymous> (/Users/exhumer/Projects/exviewer/node_modules/@electron-forge/core/src/api/package.ts:49:32)
    at node:internal/util:430:21
    at new Promise (<anonymous>)
    at AsyncFunction.<anonymous> (node:internal/util:416:12)
    at /Users/exhumer/Projects/exviewer/node_modules/@electron/packager/src/hooks.ts:9:59
    at Array.map (<anonymous>)
    at promisifyHooks (/Users/exhumer/Projects/exviewer/node_modules/@electron/packager/src/hooks.ts:9:27)
    at MacApp.copyTemplate (/Users/exhumer/Projects/exviewer/node_modules/@electron/packager/src/platform.ts:160:25)
    at async MacApp.buildApp (/Users/exhumer/Projects/exviewer/node_modules/@electron/packager/src/platform.ts:148:5)
    at async MacApp.initialize (/Users/exhumer/Projects/exviewer/node_modules/@electron/packager/src/platform.ts:141:7)
    at async MacApp.create (/Users/exhumer/Projects/exviewer/node_modules/@electron/packager/src/mac.ts:435:5)
    at async Promise.all (index 0)
    at async packager (/Users/exhumer/Projects/exviewer/node_modules/@electron/packager/src/packager.ts:246:20)
(node:17870) [DEP0174] DeprecationWarning: Calling promisify on a function that returns a Promise is likely a mistake.
    at node:internal/util:431:17
    at new Promise (<anonymous>)
    at AsyncFunction.<anonymous> (node:internal/util:416:12)
    at /Users/exhumer/Projects/exviewer/node_modules/@electron/packager/src/hooks.ts:9:59
    at Array.map (<anonymous>)
    at promisifyHooks (/Users/exhumer/Projects/exviewer/node_modules/@electron/packager/src/hooks.ts:9:27)
    at MacApp.copyTemplate (/Users/exhumer/Projects/exviewer/node_modules/@electron/packager/src/platform.ts:160:25)
    at async MacApp.buildApp (/Users/exhumer/Projects/exviewer/node_modules/@electron/packager/src/platform.ts:148:5)
    at async MacApp.initialize (/Users/exhumer/Projects/exviewer/node_modules/@electron/packager/src/platform.ts:141:7)
    at async MacApp.create (/Users/exhumer/Projects/exviewer/node_modules/@electron/packager/src/mac.ts:435:5)
    at async Promise.all (index 0)
    at async packager (/Users/exhumer/Projects/exviewer/node_modules/@electron/packager/src/packager.ts:246:20)
(node:17870) [DEP0174] DeprecationWarning: Calling promisify on a function that returns a Promise is likely a mistake.
    at node:internal/util:431:17
    at new Promise (<anonymous>)
    at node:internal/util:416:12
    at AsyncFunction.<anonymous> (/Users/exhumer/Projects/exviewer/node_modules/@electron-forge/core/src/api/package.ts:49:32)
(node:17870) [DEP0174] DeprecationWarning: Calling promisify on a function that returns a Promise is likely a mistake.
    at node:internal/util:431:17
    at new Promise (<anonymous>)
    at node:internal/util:416:12
    at AsyncFunction.<anonymous> (/Users/exhumer/Projects/exviewer/node_modules/@electron-forge/core/src/api/package.ts:49:32)
(node:17870) [DEP0174] DeprecationWarning: Calling promisify on a function that returns a Promise is likely a mistake.
    at node:internal/util:431:17
    at new Promise (<anonymous>)
    at node:internal/util:416:12
    at AsyncFunction.<anonymous> (/Users/exhumer/Projects/exviewer/node_modules/@electron-forge/core/src/api/package.ts:49:32)
✔ Preparing native dependencies
(node:17870) [DEP0174] DeprecationWarning: Calling promisify on a function that returns a Promise is likely a mistake.
    at node:internal/util:431:17
    at new Promise (<anonymous>)
    at node:internal/util:416:12
    at AsyncFunction.<anonymous> (/Users/exhumer/Projects/exviewer/node_modules/@electron-forge/core/src/api/package.ts:49:32)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
(node:17870) [DEP0174] DeprecationWarning: Calling promisify on a function that returns a Promise is likely a mistake.
    at node:internal/util:431:17
    at new Promise (<anonymous>)
    at node:internal/util:416:12
    at AsyncFunction.<anonymous> (/Users/exhumer/Projects/exviewer/node_modules/@electron-forge/core/src/api/package.ts:49:32)
    at node:internal/util:430:21
    at new Promise (<anonymous>)
    at AsyncFunction.<anonymous> (node:internal/util:416:12)
    at /Users/exhumer/Projects/exviewer/node_modules/@electron/packager/src/hooks.ts:9:59
    at Array.map (<anonymous>)
    at promisifyHooks (/Users/exhumer/Projects/exviewer/node_modules/@electron/packager/src/hooks.ts:9:27)
    at MacApp.copyTemplate (/Users/exhumer/Projects/exviewer/node_modules/@electron/packager/src/platform.ts:162:27)
    at async MacApp.buildApp (/Users/exhumer/Projects/exviewer/node_modules/@electron/packager/src/platform.ts:148:5)
    at async MacApp.initialize (/Users/exhumer/Projects/exviewer/node_modules/@electron/packager/src/platform.ts:141:7)
    at async MacApp.create (/Users/exhumer/Projects/exviewer/node_modules/@electron/packager/src/mac.ts:435:5)
    at async Promise.all (index 0)
    at async packager (/Users/exhumer/Projects/exviewer/node_modules/@electron/packager/src/packager.ts:246:20)
(node:17870) [DEP0174] DeprecationWarning: Calling promisify on a function that returns a Promise is likely a mistake.
    at node:internal/util:431:17
    at new Promise (<anonymous>)
    at AsyncFunction.<anonymous> (node:internal/util:416:12)
    at /Users/exhumer/Projects/exviewer/node_modules/@electron/packager/src/hooks.ts:9:59
    at Array.map (<anonymous>)
    at promisifyHooks (/Users/exhumer/Projects/exviewer/node_modules/@electron/packager/src/hooks.ts:9:27)
    at MacApp.copyTemplate (/Users/exhumer/Projects/exviewer/node_modules/@electron/packager/src/platform.ts:162:27)
    at async MacApp.buildApp (/Users/exhumer/Projects/exviewer/node_modules/@electron/packager/src/platform.ts:148:5)
    at async MacApp.initialize (/Users/exhumer/Projects/exviewer/node_modules/@electron/packager/src/platform.ts:141:7)
    at async MacApp.create (/Users/exhumer/Projects/exviewer/node_modules/@electron/packager/src/mac.ts:435:5)
    at async Promise.all (index 0)
    at async packager (/Users/exhumer/Projects/exviewer/node_modules/@electron/packager/src/packager.ts:246:20)
✔ Finalizing package
✔ Packaging for arm64 on darwin
✔ Packaging application
❯ Running postPackage hook
❯ Running postPackage hook from forgeConfig
(node:17870) [DEP0174] DeprecationWarning: Calling promisify on a function that returns a Promise is likely a mistake.
    at node:internal/util:431:17
    at new Promise (<anonymous>)
    at node:internal/util:416:12
    at AsyncFunction.<anonymous> (/Users/exhumer/Projects/exviewer/node_modules/@electron-forge/core/src/api/package.ts:49:32)
    at node:internal/util:430:21
    at new Promise (<anonymous>)
    at AsyncFunction.<anonymous> (node:internal/util:416:12)
    at /Users/exhumer/Projects/exviewer/node_modules/@electron/packager/src/hooks.ts:9:59
    at Array.map (<anonymous>)
    at promisifyHooks (/Users/exhumer/Projects/exviewer/node_modules/@electron/packager/src/hooks.ts:9:27)
    at MacApp.move (/Users/exhumer/Projects/exviewer/node_modules/@electron/packager/src/platform.ts:293:27)
    at async Promise.all (index 0)
    at async packager (/Users/exhumer/Projects/exviewer/node_modules/@electron/packager/src/packager.ts:246:20)
DeprecationWarning: Calling promisify on a function that returns a Promise is likely a mistake.
    at node:internal/util:431:17
    at new Promise (<anonymous>)
    at node:internal/util:416:12
    at AsyncFunction.<anonymous> (/Users/exhumer/Projects/exviewer/node_modules/@electron-forge/core/src/api/package.ts:49:32)
    at node:internal/util:430:21
    at new Promise (<anonymous>)
    at AsyncFunction.<anonymous> (node:internal/util:416:12)
    at /Users/exhumer/Projects/exviewer/node_modules/@electron/packager/src/hooks.ts:9:59
    at Array.map (<anonymous>)
    at promisifyHooks (/Users/exhumer/Projects/exviewer/node_modules/@electron/packager/src/hooks.ts:9:27)
    at MacApp.move (/Users/exhumer/Projects/exviewer/node_modules/@electron/packager/src/platform.ts:293:27)
    at async Promise.all (index 0)
    at async packager (/Users/exhumer/Projects/exviewer/node_modules/@electron/packager/src/packager.ts:246:20) {
  code: 'DEP0174'
}
(node:17870) [DEP0174] DeprecationWarning: Calling promisify on a function that returns a Promise is likely a mistake.
    at node:internal/util:431:17
    at new Promise (<anonymous>)
    at AsyncFunction.<anonymous> (node:internal/util:416:12)
    at /Users/exhumer/Projects/exviewer/node_modules/@electron/packager/src/hooks.ts:9:59
    at Array.map (<anonymous>)
    at promisifyHooks (/Users/exhumer/Projects/exviewer/node_modules/@electron/packager/src/hooks.ts:9:27)
    at MacApp.move (/Users/exhumer/Projects/exviewer/node_modules/@electron/packager/src/platform.ts:293:27)
    at async Promise.all (index 0)
    at async packager (/Users/exhumer/Projects/exviewer/node_modules/@electron/packager/src/packager.ts:246:20)
DeprecationWarning: Calling promisify on a function that returns a Promise is likely a mistake.
    at node:internal/util:431:17
    at new Promise (<anonymous>)
    at AsyncFunction.<anonymous> (node:internal/util:416:12)
    at /Users/exhumer/Projects/exviewer/node_modules/@electron/packager/src/hooks.ts:9:59
    at Array.map (<anonymous>)
    at promisifyHooks (/Users/exhumer/Projects/exviewer/node_modules/@electron/packager/src/hooks.ts:9:27)
    at MacApp.move (/Users/exhumer/Projects/exviewer/node_modules/@electron/packager/src/platform.ts:293:27)
    at async Promise.all (index 0)
    at async packager (/Users/exhumer/Projects/exviewer/node_modules/@electron/packager/src/packager.ts:246:20) {
  code: 'DEP0174'
}
✔ Running postPackage hook from forgeConfig
✔ Running postPackage hook
(.venv) ➜  exhumer@EXHUMER-MACBOOK-AIR  ~/Projects/exviewer git:(main) ✗ 

Steps to reproduce

npm create electron-app electron-app -- --template=webpack-typescript
cd electron-app
npm run package

Additional information

I am using the following forge configuration currently when I get these deprecation warnings.

https://github.com/eXhumer/eXViewer/blob/6cb73d39972add0aff25580b3abf307f3f757979/forge.config.ts

Metadata

Assignees

Labels

packageIssues related to the `package` command

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions