Skip to content

"aws-amplify": "^5.3.12" not compatible with React Native 0.79.6 #14546

@kasunppiyathissa-gif

Description

@kasunppiyathissa-gif

Before opening, please confirm:

JavaScript Framework

React Native

Amplify APIs

Authentication

Amplify Version

v6

Amplify Categories

No response

Backend

None

Environment information

Image
# Put output below this line


Describe the bug

I am trying to migrate my 0.78.0 react native application to 0.79.6 . I cannot run the app with aws-amplify library metro bundler is throwing an error.

Error is

TypeError: Cannot read property '__extends' of undefined, js engine: hermes
Cannot read property '__awaiter' of undefined

Seems like the library is incompatible with 0.79.6 hermes engine

Expected behavior

Should not throw any error when using library methods

Reproduction steps

Install the react native version 0.79.5
install the aws-amplify npm package
Use any of its Authentication methods

  • Eg ```
    Auth.signIn({
    username,
    password,
    });

### Code Snippet

```javascript
// Put your code below this line.

import { Auth } from 'aws-amplify';

  Auth.signIn({
      username,
      password,
    });

Log output

// Put your logs below this line


aws-exports.js

No response

Manual configuration

No response

Additional configuration

No response

Mobile Device

No response

Mobile Operating System

No response

Mobile Browser

No response

Mobile Browser Version

No response

Additional information and screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    pending-community-responseIssue/PR is pending a response from the author or community.questionGeneral question

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions