-
Notifications
You must be signed in to change notification settings - Fork 304
S3 module not working on node 12 #228
Comments
you need to update graceful-fs package of s3 to updated version it will work then. i had the same issue. |
@manimoto Thanks for your answer. |
Use the fork of this repo https://github.com/auth0/node-s3-client |
Thanks @BlackSonic |
I was trying to use the fork to replace our currently Anyway, do you know if a proper fix or a new release with the fork will be done soon? Thanks in advance |
Looks like there was a problem publishing the 4.4.0 version of this s3 client. The source code has |
i have updated the package but the issue is still there. ReferenceError: primordials is not defined |
same her, node 12.18.0 breaks, i found this which solves the problem by forcing the graceful-fs to 4.x using npm-shrinkwrap.json, but requires to manualy regenerate that file every time npm i is executed, if not it breaks again. so how do you update the graceful-fs in the s3 package the right way? |
Hello @brainlessboy , You can use the Something like this
|
@RajaBellebon many thanks! |
|
@RajaBellebon your solution using @BlackSonic thanks for the suggestion, I was able to get things working on my end using the Is there any timeline to update this package properly? |
I am using https://www.npmjs.com/package/s3-node for Node 14 npm install s3-node |
I am running node version 12.13.0 (LTS)
and using the latest s3 module (4.4.0)
the module using with an old version of graceful-fs that was broken in node 12.
I am getting this error
ReferenceError: primordials is not defined
at fs.js:27:26
at req_ (/app/node_modules/natives/index.js:143:24)
at Object.req [as require] (/app/node_modules/natives/index.js:55:10)
at Object. (/app/node_modules/s3/node_modules/graceful-fs/fs.js:1:37)
at Module._compile (internal/modules/cjs/loader.js:956:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:973:10)
at Module.load (internal/modules/cjs/loader.js:812:32)
at Function.Module._load (internal/modules/cjs/loader.js:724:14)
at Module.require (internal/modules/cjs/loader.js:849:19)
at require (internal/modules/cjs/helpers.js:74:18)
at Object. (/app/node_modules/s3/node_modules/graceful-fs/graceful-fs.js:3:27)
at Module._compile (internal/modules/cjs/loader.js:956:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:973:10)
at Module.load (internal/modules/cjs/loader.js:812:32)
at Function.Module._load (internal/modules/cjs/loader.js:724:14)
at Module.require (internal/modules/cjs/loader.js:849:19)
at require (internal/modules/cjs/helpers.js:74:18)
at Object. (/app/node_modules/s3/lib/index.js:3:10)
at Module._compile (internal/modules/cjs/loader.js:956:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:973:10)
at Module.load (internal/modules/cjs/loader.js:812:32)
at Function.Module._load (internal/modules/cjs/loader.js:724:14)
at Module.require (internal/modules/cjs/loader.js:849:19)
at require (internal/modules/cjs/helpers.js:74:18)
The text was updated successfully, but these errors were encountered: