Open xiazhvera opened 1 year ago
@xiazhvera Did you find a solution for this issue please ?
@xiazhvera Did you find a solution for this issue please ?
Not yet. While it seems that the issue does not occurs to electron-packager. You could try using it for package.
Have you tried adding derefSymlinks: true
?
const config: ForgeConfig = {
packagerConfig: {
derefSymlinks: true
},
Pre-flight checklist
Electron Forge version
6.1.1
Electron version
v19.1.9
Operating system
macOS 13.4
Last known working Electron Forge version
No response
Expected behavior
Running electron-forge and package the sample with no error.
Actual behavior
Console Output:
Steps to reproduce
The issue happens when I have a dependency to a local library using a relative path. Sample package.json
Simply run
npm run make
could reproduce the issue.Additional information
I did not see the issue if I use a version number instead of the relative path for the dependency. However, I would like to to build the application with my local distribution instead of the public version.
Besides, it seems that the issue does not occur when running electron-packager directly:
I was able to package the sample without errors running the commands above.
Electron-packager had a similar issue and it has been fixed in 8.5.2. It could be related or similar: https://github.com/electron/electron-packager/issues/396