electron-builder icon indicating copy to clipboard operation
electron-builder copied to clipboard

unable to parse `path` during `tree.dependencies` reduce

Open anton-liam opened this issue 7 months ago • 7 comments

Since we use @electron-forge/plugin-vite to build electron app, there is no node_modules dir in app.asar.

 electron-builder  version=26.0.12 os=10.0.19045
  • loaded configuration  file=package.json ("build" field)
  • author is missed in the package.json  appPackageFile=D:\project\apps\dashboard-desktop\package.json
  • writing effective config  file=dist\builder-effective-config.yaml
  • "electron-squirrel-startup" dependency is not required for NSIS
  • executing @electron/rebuild  electronVersion=35.0.0 arch=x64 buildFromSource=false appDir=./
  • installing native dependencies  arch=x64
  • completed installing native dependencies
  • packaging       platform=win32 arch=x64 electron=35.0.0 appOutDir=dist\win-unpacked
  ⨯ dependency path is undefined  packageName=commander data=[object Object] parentModule=@electron/asar parentVersion=4.0.0
  ⨯ unable to parse `path` during `tree.dependencies` reduce  failedTask=build stackTrace=Error: unable to parse `path` during `tree.dependencies` reduce

anton-liam avatar May 29 '25 15:05 anton-liam

I use electron-builder 25.1.8 solved this problem

DavidLUO-star avatar Jun 11 '25 02:06 DavidLUO-star

Getting the same error.

thecodrr avatar Jun 18 '25 06:06 thecodrr

This issue is stale because it has been open for 30 days with no activity. Remove stale label or comment, or this will be closed in 30 days.

github-actions[bot] avatar Jul 19 '25 00:07 github-actions[bot]

@anton-liam Could you try 26.0.19 version?

beyondkmp avatar Jul 29 '25 05:07 beyondkmp

This issue is stale because it has been open for 30 days with no activity. Remove stale label or comment, or this will be closed in 30 days.

github-actions[bot] avatar Aug 30 '25 00:08 github-actions[bot]

Please change the latest tag from 26.0.12 to working versions as the Build is failing if we install electron-builder@latest

this is still the caase

kyeshmz avatar Oct 16 '25 14:10 kyeshmz