Typeerror: Opendirsync Is Not A Function
I am writing an electron application and I want to use the opendirSync function of the fs module in order to count the number of files in a directory. However, I get the following
Solution 1:
The opendirSync
method was added in node version: v12.12.0
, You have to upgrade the node version.
History:
Version Changes
v13.1.0 The bufferSize option was introduced.
v12.12.0 Added in: v12.12.0
You can read more about this here
Post a Comment for "Typeerror: Opendirsync Is Not A Function"