Giter Club home page Giter Club logo

Comments (11)

snowsea-dev avatar snowsea-dev commented on June 5, 2024 9

from react-native-aws-cognito-js.

anbublacky avatar anbublacky commented on June 5, 2024 3

It worked for me by removing aws-sdk folder from node_modules.
Then installed aws-sdk version 2.177.0 (npm install [email protected])

Thanks @SnowSea-Dream

from react-native-aws-cognito-js.

snowsea-dev avatar snowsea-dev commented on June 5, 2024 3

Close

from react-native-aws-cognito-js.

tobiastornros avatar tobiastornros commented on June 5, 2024

There is a problem with amazon-cognito-identity-js lib. Workaround and more info here: amazon-archives/amazon-cognito-identity-js#646

from react-native-aws-cognito-js.

dannyshisler avatar dannyshisler commented on June 5, 2024

I've just had this problem after upgrading a few libraries.

I've fixed it by deleting the aws-sdk folders from both my node_modules folder and the node_modules folder under the react-native-aws-cognito-js package (I had it in both places for some reason).

I've added [email protected] which seems to be the latest working package identified in the issue (https://github.com/aws/amazon-cognito-identity-js/issues/6460) that @tobiastornros referenced.

FWIW I've also added the following section to my package.json file to avoid unintentional upgrade of the aws-sdk package until this issue is fixed.

"resolutions": {
    "aws-sdk": "2.177.0"
  }

I've never used this before but according to https://yarnpkg.com/lang/en/docs/cli/install/#toc-yarn-install-flat this should force a single specific version of a package to always been installed (when using yarn) rather than multiple potentially conflicting versions.

from react-native-aws-cognito-js.

panuhorsmalahti avatar panuhorsmalahti commented on June 5, 2024

This error has been fixed in [email protected], which is available from npm.

amazon-archives/amazon-cognito-identity-js#646 (comment)
https://www.npmjs.com/package/amazon-cognito-identity-js

from react-native-aws-cognito-js.

panuhorsmalahti avatar panuhorsmalahti commented on June 5, 2024

Why was this issue closed? As far as I know, the fix from [email protected] has not been ported to react-native-aws-cognito-js yet.

from react-native-aws-cognito-js.

ephor avatar ephor commented on June 5, 2024

I have [email protected] installed, but error is not gone. Maybe @panuhorsmalahti is right?

from react-native-aws-cognito-js.

rahulbhankar786 avatar rahulbhankar786 commented on June 5, 2024

thanks @anbublacky you save my day.

from react-native-aws-cognito-js.

NavneetSandhu avatar NavneetSandhu commented on June 5, 2024

Getting the same issue from past few days and badly stuck with this issue, please help me out.

ISSUE: _awsSdkReactNative.util.crypto.lib.randomBytes is not a function

React Native version is 0.59.5

Solutions will be highly appreciated.

"aws-amplify": "^1.0.4",
"aws-sdk": "^2.513.0",
"jetifier": "^1.6.4",
"react": "16.8.3",
"react-native": "0.59.5",
"react-native-aws-cognito-js": "0.0.7",

Thanks

from react-native-aws-cognito-js.

NavneetSandhu avatar NavneetSandhu commented on June 5, 2024

Can anyone let me know how to make aws-sdk working with react-native 0.59.5 version?
@SnowSea-Dream @tobiastornros @dannyshisler @anbublacky @panuhorsmalahti

Thanks

from react-native-aws-cognito-js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.