-
Notifications
You must be signed in to change notification settings - Fork 1k
ENOENT when trying to use path.join on 4.3.0 #366
Comments
I have exactly the same issue. suppose my transpiled entry is in my package.json I have but code like The readme [is a bit weird] where it says to use Regardless, I've tried many variations of the above to no avail. running pkg with --debug shows nothing suspicious, it says the file in question is queued, then packaged as an asset. Is there any easy way to see what's actually packaged in an executable ? Would be handy to see. Even listing them in debug output at the end would be good. I'd never tried 4.2.6 previously, but I tried reverting and got a bunch of |
I also have the exact same issue as the original poster has raised. I was originally using 4.3.0, but once reverted back to 4.2.6 I now no longer get the error. |
@fauxilla for your babel imports, I don't know exactly what you mean but my project uses babel as well and I have no issues with pkg 4.2.6. Here's how I do it :
I'm sure this isn't the most optimized way of doing it but it works so I'm not going to complain. I'll probably try to rework the assets section sometime when I have some time to spare but my .exe works fine so far (even if a bit bloated) |
Same issue here. Trying to copy assets from the snapshot filesystem to the real filesystem will throw this error in all versions beyond |
I tried with 4.3.3 and it still doesn't work :/ |
One workaround was found in #420 which is a similar issue. I tried it and it worked fine for me, but thi sis still a nasty bug. |
This issue is stale because it has been open 90 days with no activity. Remove the stale label or comment or this will be closed in 5 days. To ignore this issue entirely you can add the no-stale label |
This issue is now closed due to inactivity, you can of course reopen or reference this issue if you see fit. |
Hello.
I recently upgraded pkg to 4.3.0 and ran into an issue with my project. I retested with 4.2.6 and the error doesn't seem to be here.
Basically my code outputs :
Error: ENOENT: no such file or directory, copyfile 'D:\snapshot\toyundamugen-app\dist\_player\assets\input.conf' -> 'D:\dev\toyundamugen-app\app\temp\input.conf'
While trying to copy a file using
fs-extra
's copy.This is the bit of code that's used. As you can see I use (path).join for something that's inside the assets option in my package.json file.
As I said, this doesn't seem to work anymore since 4.3.0-beta.1
I couldn't test with beta.0 since node builds weren't available for download anymore with that version.
If I can help with more information, please do tell me :)
The text was updated successfully, but these errors were encountered: