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

Cannot read properties of undefined (reading 'Headers') #346

Open
dingshaohua-com opened this issue Jan 5, 2025 · 1 comment
Open

Cannot read properties of undefined (reading 'Headers') #346

dingshaohua-com opened this issue Jan 5, 2025 · 1 comment
Labels

Comments

@dingshaohua-com
Copy link

dingshaohua-com commented Jan 5, 2025

• electron-builder  version=24.13.3 os=24.1.0
  • loaded configuration  file=/Users/dsh/files.localized/code/live-electron/electron-builder.json
  • description is missed in the package.json  appPackageFile=/Users/dsh/files.localized/code/live-electron/package.json
  • writing effective config  file=dist/builder-effective-config.yaml
  • rebuilding native dependencies  [email protected] platform=darwin arch=x64
  • rebuilding native dependency  name=fsevents version=1.2.13
  • packaging       platform=darwin arch=x64 electron=22.3.27 appOutDir=dist/mac-universal-x64-temp
  • rebuilding native dependencies  [email protected] platform=darwin arch=arm64
  • rebuilding native dependency  name=fsevents version=1.2.13
  • packaging       platform=darwin arch=arm64 electron=22.3.27 appOutDir=dist/mac-universal-arm64-temp
  • packaging       platform=darwin arch=universal electron=22.3.27 appOutDir=dist/mac-universal
  ⨯ Cannot read properties of undefined (reading 'Headers')  failedTask=build stackTrace=TypeError: Cannot read properties of undefined (reading 'Headers')
    at Filesystem.getNode (/Users/dsh/files.localized/code/live-electron/node_modules/@electron/asar/lib/filesystem.js:138:24)
    at Filesystem.getFile (/Users/dsh/files.localized/code/live-electron/node_modules/@electron/asar/lib/filesystem.js:146:23)
    at Filesystem.getFile (/Users/dsh/files.localized/code/live-electron/node_modules/@electron/asar/lib/filesystem.js:154:19)
    at Object.module.exports.statFile (/Users/dsh/files.localized/code/live-electron/node_modules/@electron/asar/lib/asar.js:157:21)
    at buildUnpacked (/Users/dsh/files.localized/code/live-electron/node_modules/@electron/universal/src/asar-utils.ts:101:25)
    at Object.exports.mergeASARs (/Users/dsh/files.localized/code/live-electron/node_modules/@electron/universal/src/asar-utils.ts:114:3)
    at exports.makeUniversalApp (/Users/dsh/files.localized/code/live-electron/node_modules/@electron/universal/src/index.ts:235:13)
    at processTicksAndRejections (node:internal/process/task_queues:105:5)
    at MacPackager.doPack (/Users/dsh/files.localized/code/live-electron/node_modules/app-builder-lib/src/macPackager.ts:140:9)
    at MacPackager.pack (/Users/dsh/files.localized/code/live-electron/node_modules/app-builder-lib/src/macPackager.ts:198:9)
    at Packager.doBuild (/Users/dsh/files.localized/code/live-electron/node_modules/app-builder-lib/src/packager.ts:445:9)
    at executeFinally (/Users/dsh/files.localized/code/live-electron/node_modules/builder-util/src/promise.ts:12:14)
    at Packager._build (/Users/dsh/files.localized/code/live-electron/node_modules/app-builder-lib/src/packager.ts:379:31)
    at Packager.build (/Users/dsh/files.localized/code/live-electron/node_modules/app-builder-lib/src/packager.ts:340:12)
    at executeFinally (/Users/dsh/files.localized/code/live-electron/node_modules/builder-util/src/promise.ts:12:14)
✨  Done in 9.75s.
 *  终端将被任务重用,按任意键关闭。 

when i disable assr, i got err too

 electron-builder  version=24.13.3 os=24.1.0
  • loaded configuration  file=/Users/dsh/files.localized/code/live-electron/electron-builder.json
  • description is missed in the package.json  appPackageFile=/Users/dsh/files.localized/code/live-electron/package.json
  • writing effective config  file=dist/builder-effective-config.yaml
  • rebuilding native dependencies  [email protected] platform=darwin arch=x64
  • rebuilding native dependency  name=fsevents version=1.2.13
  • packaging       platform=darwin arch=x64 electron=22.3.27 appOutDir=dist/mac-universal-x64-temp
  • asar usage is disabled — this is strongly not recommended  solution=enable asar and use asarUnpack to unpack files that must be externally available
  ⨯ ENOENT: no such file or directory, ensureSymlink 'Versions/Current/Headers'  failedTask=build stackTrace=Error: ENOENT: no such file or directory, ensureSymlink 'Versions/Current/Headers'
    at processImmediate (node:internal/timers:491:21)
From previous event:
    at copyAppFiles (/Users/dsh/files.localized/code/live-electron/node_modules/app-builder-lib/src/util/appFileCopier.ts:86:27)
✨  Done in 7.85s.
 *  终端将被任务重用,按任意键关闭。 
@BlackHole1
Copy link
Member

Can you verify again using the latest version of asar?

@erickzhao erickzhao added the bug label Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants