question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Today 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:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
MarshallOfSoundcommented, Jul 4, 2018

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 dir A if it contains a symlink B to A inside of A itself 🤔 i have no idea if that made sense

Basically when packaging you probably shouldn’t be using symlinks it’s just gonna make things complicated.

1reaction
Knaackeecommented, Jan 19, 2018

@malept

removing “tmpdir” did the trick.

Thank You!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Missing number, treated as zero - Overleaf, Online LaTeX Editor
This error appears when you have written something inside a count, ... out why I needed to see a number, look up `weird...
Read more >
Weird error "Missing number treated as zero" - TeX
Save this question. Show activity on this post. The error message refers to the line that says "\end{tabulary} and states:
Read more >
Weird error: A number should have been inserted here
I get the following error when compiling this code. Missing number, treated as zero. ... A number should have been here; I inserted...
Read more >
Weird Error Messages - Wiki
Here are some weird error messages and the mistakes that cause them. ... A variation seen recently in a Windows app: "Error: The...
Read more >
Weird error message - Microsoft Community
When I log in as the admin on my Windows 10 PC, I get this weird error message. What do I need to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found