Pkg: Snapshot file system incompatible with fs.promises API

Created on 5 Aug 2020  路  2Comments  路  Source: vercel/pkg

Switched from "classic" fs.readFile (or promisified version) to fs.promises and fs.promises.readFile() fails to find a file with ENOENT.
The file is definitely there, changing back to promisified fs.readFile() works fine.

Node 12.16.1, pkg 4.4.9

Most helpful comment

@igorklopov There should be a warning on the front-side README.md that the fs.promises API is not (yet?) supported. Is there a plan/roadmap when it will be implemented?

All 2 comments

@igorklopov There should be a warning on the front-side README.md that the fs.promises API is not (yet?) supported. Is there a plan/roadmap when it will be implemented?

Same with me. Super annoying that there's no proper warning what and while - especially when you package a third-side module (like jsdom) and you don't control the source.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ydubois-fr picture ydubois-fr  路  4Comments

j-brown picture j-brown  路  4Comments

jflayhart picture jflayhart  路  4Comments

telunc picture telunc  路  4Comments

bergheim picture bergheim  路  3Comments