Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't find variable:self error #5

Closed
bawn opened this issue Mar 28, 2016 · 3 comments
Closed

Can't find variable:self error #5

bawn opened this issue Mar 28, 2016 · 3 comments

Comments

@bawn
Copy link

bawn commented Mar 28, 2016

simulator screen shot mar 28 2016 3 33 50 pm

when import fetch-it an error occurred

code:

import React, {
  AppRegistry,
  Component,
  StyleSheet,
  Text,
  View,
  Image,
  Platform,
  BackAndroid
} from 'react-native';

import {
  MKTextField,
  MKColor,
  MKButton,
  mdl,
} from 'react-native-material-kit';

import {
  Scene,
  Router,
  Switch,
  TabBar,
  Modal,
  Schema,
  Actions
} from 'react-native-router-flux';

import NavBar from './NavbarRender';
import Styles from './Styles';
import FetchIt from 'fetch-it';
import realm from '../models/realm';

and my package.json

  "name": "Zootopia",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "start": "node node_modules/react-native/local-cli/cli.js start"
  },
  "dependencies": {
    "fetch-it": "^0.2.0",
    "react": "^0.14.7",
    "react-native": "^0.22.2",
    "react-native-material-kit": "^0.3.0",
    "react-native-navbar": "^1.4.1",
    "react-native-router-flux": "^3.2.3",
    "realm": "^0.11.0"
  }
}

This error seems to be after I joined the realm occurred, and realm installation method:

npm install -g rnpm
npm install --save realm
rnpm link realm
@dig3
Copy link
Contributor

dig3 commented Apr 6, 2016

@bawn Could you provide more data on the bug, since that log does not provide too much? Maybe is something with webpack module loader stuff, since I did not use self in the code.

@bawn
Copy link
Author

bawn commented Apr 19, 2016

@dig3 On react native 0.24.0 has no problem, Thanks

@bawn bawn closed this as completed Apr 19, 2016
@dig3
Copy link
Contributor

dig3 commented Apr 19, 2016

@bawn Cool!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants