You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
node index fails with the following error on Node v16.20.0 and v14.21.3
console.log(new File(['Hello World'], 'hello.txt'))
^
TypeError: File is not a constructor
at Object.<anonymous> (/home/jeswr/Documents/GitHub/buffer-file-test/index.js:2:13)
at Module._compile (node:internal/modules/cjs/loader:1196:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1250:10)
at Module.load (node:internal/modules/cjs/loader:1074:32)
at Function.Module._load (node:internal/modules/cjs/loader:909:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:22:47
Versions
buffer: 6.0.3
The text was updated successfully, but these errors were encountered:
I have the following index.js
node index
succeeds on Nodev20.0.0
andv18.16.0
.node index
fails with the following error on Nodev16.20.0
andv14.21.3
Versions
buffer: 6.0.3
The text was updated successfully, but these errors were encountered: