-
Notifications
You must be signed in to change notification settings - Fork 1k
fs.promises readdir, readFile, etc. fail with ENOENT #455
Comments
I have the same problem about fs #521 |
Fixed in #521 for readFileSync |
This issue is still there in pkg 4.2.2 when making a build with node 12. In node 12 fspromises is no longer experimental, so I would expect it to work. console.log( fs.readFile(file, (err, data) => { |
this is still not working in |
Will work on this next. |
Yes nextjs is almost unusable with pkg after this commit |
I'm still running into this. Is there any progress here? |
I patched this on my fork at https://github.com/leafac/pkg It’s available at If the maintainers are interested in a pull request, I’d be happy to send it. |
Merged! |
Thanks @leerob! 🙌 |
fs.promises is still "Experimental" so there may be some bug with that, but readdir, readFile, etc. don't seem to work with assets, they all fail with ENOENT.
Just an FYI in case it saves someone else some time.
The text was updated successfully, but these errors were encountered: