Weird error
See original GitHub issueToday I wanted to change something in my electron application. After i did my changes I tried packing but got an error. The last time it runs successfuly. I’ve used the same node (v6.3.1) an npm version (3.10.3).
` ✔ Checking your system
✔ Resolving Forge Config
We need to package your application before we can make it
⠇ Preparing to Package Application for arch: x64
An unhandled rejection has occurred inside Forge: Cannot copy ‘/Users/dknaack/Development/myApplication’ to a subdirectory of itself, ‘/Users/dknaack/Development/myApplication/out/MYAPP-darwin-x64/Electron.app/Contents/Resources/app’. Error: Cannot copy ‘/Users/dknaack/Development/myApplication’ to a subdirectory of itself, ‘/Users/dknaack/Development/myApplication/out/MYAPP-darwin-x64/Electron.app/Contents/Resources/app’. at checkDest (/usr/local/lib/node_modules/electron-forge/node_modules/electron-packager/node_modules/fs-extra/lib/copy/copy.js:141:19) at fs.readlink (/usr/local/lib/node_modules/electron-forge/node_modules/electron-packager/node_modules/fs-extra/lib/copy/copy.js:239:41) at FSReqWrap.oncomplete (fs.js:123:15) `
Any ideas?
Thank you!
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:8 (5 by maintainers)
Top GitHub Comments
If you aren’t using a
tmpdir
you need to ensure you don’t have recursive symlinks or something weird like that. The FS will not allow you to copy dirA
if it contains a symlinkB
toA
inside ofA
itself 🤔 i have no idea if that made senseBasically when packaging you probably shouldn’t be using symlinks it’s just gonna make things complicated.
@malept
removing “tmpdir” did the trick.
Thank You!