question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't find variable : self

See original GitHub issue

Before opening, please confirm:

JavaScript Framework

React Native

Amplify APIs

Storage

Amplify Categories

No response

Environment information

“react-native”: “0.59.9”, “react”: “16.8.3”,

Describe the bug

Install “@aws-amplify/datastore”: “^3.6.1”, package in terminal After importing the package name in screen Run the app Getting error

Expected behavior

After installed the package without error run the app

Reproduction steps

Install “@aws-amplify/datastore”: “^3.6.1”, package in terminal After importing the package name in screen Run the app Getting error

Code Snippet

// Put your code below this line.

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

Simulator Screen Shot - iPad 6thGeneration - 2021-10-21 at 17 47 13

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
sammartinezcommented, Nov 17, 2021

Thanks for this, super helpful. In looking at your dependencies, I am noticing that your aws-amplify version is a previous version to what is current. For Amplify DataStore dependencies for version ^3.6.1 does have a dependency on our version 4 of the library. Please see this. Please look to upgrade your dependencies to the latest version of aws-amplify and report back. Also, if you can provide code snippets it would be helpful to us as well.

0reactions
github-actions[bot]commented, Nov 25, 2022

This issue has been automatically locked since there hasn’t been any recent activity after it was closed. Please open a new issue for related bugs.

Looking for a help forum? We recommend joining the Amplify Community Discord server *-help channels or Discussions for those types of questions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: Can't find variable: self · Issue #125 - GitHub
Hello. I am using redux-api-middleware which is using version 2.2.1 of isomorphic-fetch. I am experiencing an error where self is undefined ...
Read more >
React Native Error - Can't find variable: self - Stack Overflow
After adding a node module, isomorphic-fetch (version : ^2.2.1) in React Native app, I am getting an error of Can't find variable: self...
Read more >
Can't find variable: self when using datocms-client with react ...
Hi, I'm trying out DatoCMS with a react native app, but when I try to import anything from datocms-client (e.g. { SiteClient })...
Read more >
[Solved]-React Native Error - Can't find variable - appsloveworld
Coding example for the question React Native Error - Can't find variable: self-React Native.
Read more >
Node.js – React Native Error – Can't find variable: self - iTecNote
After adding a node module, isomorphic-fetch (version : ^2.2.1) in React Native app, I am getting an error of Can't find variable: self...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found