Open busterbogheart opened 1 year ago
Does anyone have a clue for this issue?
Same error. Any update on this?
step 1 open file: node_modules/@electron/asar/lib/filesystem.js
step2 104 line
const link = path.relative(fs.realpathSync(this.src), path.join(parentPath, symlink))
Replace with
const link = path.relative(fs.realpathSync(this.src), fs.realpathSync(path.join(parentPath, symlink)))
step3 Install patch-package
npx patch-package @electron/asar
Done!!!
When will this be fixed?
When ASAR runs on bash at Linux, it also issue "links out of the package".
Pre-flight checklist
Electron Forge version
6.1.1
Electron version
24.1.1
Operating system
Windows Server 2019 Datacenter
Last known working Electron Forge version
No response
Expected behavior
Due to long file name errors when build on Windows ("The fully qualified file name must be less than 260 characters...") we have enabled ASAR for our build. But one of our dependencies is
npm link
ed which seems to cause the issue noted here. This is thelib-core
module in the console output.However:
unlink
ing thelib-core
module, clearing node_modules, andnpm i
ing the module normally (without linking) gives the same result.Expected behavior would be that the Windows VM build completes successfully just as the MacOS one does.
Actual behavior
Running
npm run make
errors out with the console output pasted below.Steps to reproduce
Seemingly:
npm init electron-app@latest testapp
..
npm link ../module
fromtestapp
projectnpm run make
and observe crash with "links out of the package" errorAdditional information
package.json
Output: