Can't find variable : self
See original GitHub issueBefore opening, please confirm:
- I have searched for duplicate or closed issues and discussions.
- I have read the guide for submitting bug reports.
- I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
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
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (3 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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 ofaws-amplify
and report back. Also, if you can provide code snippets it would be helpful to us as well.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.