Unable to resolve “firebase” from “srccontainersLogin.js”
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}
I got this error when i run the exp start command. How can I solve this error?
This is my login.js
file code.
I am new to React native, using js to run a native app using expo, so I am stuck. I don't know why it gives me this error and how to handle it.
import React, { Component } from 'react';
import {
Alert,
StyleSheet,
Text,
View,
TextInput,
TouchableOpacity,
Image,
AsyncStorage,
KeyboardAvoidingView,
Dimensions,
ActivityIndicator,
NetInfo,
BackHandler,
DeviceEventEmitter
} from 'react-native';
import * as firebase from 'firebase';
import firebaseService from '../config/firebaseService';
import {Actions} from 'react-native-router-flux';
import Modal from "react-native-modal";
import { Dialog,ConfirmDialog } from 'react-native-simple-dialogs';
import Toast, {DURATION} from 'react-native-easy-toast';
import Expo from 'expo';
var height = Dimensions.get('window').height;
var width = Dimensions.get('window').width;
import styles from "../styles/loginStyle";
import {apiUrl,netErrorMsg,facebookId,androidGoogleClientId,iosGoogleClientId,firebaseConfig} from "../config/constant";
export default class Login extends Component<{}> {
constructor(props) {
super(props);
this.state = {
email:'',
password:'',
forgotEmail:'',
versionName:'',
loading:false,
isModalVisible: false,
netStatus:'none',
dialogVisible:false,
errorForgotEmail:""
}
}
node.js reactjs firebase react-native
add a comment |
I got this error when i run the exp start command. How can I solve this error?
This is my login.js
file code.
I am new to React native, using js to run a native app using expo, so I am stuck. I don't know why it gives me this error and how to handle it.
import React, { Component } from 'react';
import {
Alert,
StyleSheet,
Text,
View,
TextInput,
TouchableOpacity,
Image,
AsyncStorage,
KeyboardAvoidingView,
Dimensions,
ActivityIndicator,
NetInfo,
BackHandler,
DeviceEventEmitter
} from 'react-native';
import * as firebase from 'firebase';
import firebaseService from '../config/firebaseService';
import {Actions} from 'react-native-router-flux';
import Modal from "react-native-modal";
import { Dialog,ConfirmDialog } from 'react-native-simple-dialogs';
import Toast, {DURATION} from 'react-native-easy-toast';
import Expo from 'expo';
var height = Dimensions.get('window').height;
var width = Dimensions.get('window').width;
import styles from "../styles/loginStyle";
import {apiUrl,netErrorMsg,facebookId,androidGoogleClientId,iosGoogleClientId,firebaseConfig} from "../config/constant";
export default class Login extends Component<{}> {
constructor(props) {
super(props);
this.state = {
email:'',
password:'',
forgotEmail:'',
versionName:'',
loading:false,
isModalVisible: false,
netStatus:'none',
dialogVisible:false,
errorForgotEmail:""
}
}
node.js reactjs firebase react-native
Share the code from where thefirebase
is referenced from 'srccontainersLogin.js'
– Suraj Malviya
Jan 3 at 7:11
Now i solved that problem now it's gives me this error Unable to resolve "scheduler/tracing" from "node_modulesreact-nativeLibrariesRendererossReactNativeRenderer-dev.js"
– vivek manavadariya
Jan 3 at 7:27
add a comment |
I got this error when i run the exp start command. How can I solve this error?
This is my login.js
file code.
I am new to React native, using js to run a native app using expo, so I am stuck. I don't know why it gives me this error and how to handle it.
import React, { Component } from 'react';
import {
Alert,
StyleSheet,
Text,
View,
TextInput,
TouchableOpacity,
Image,
AsyncStorage,
KeyboardAvoidingView,
Dimensions,
ActivityIndicator,
NetInfo,
BackHandler,
DeviceEventEmitter
} from 'react-native';
import * as firebase from 'firebase';
import firebaseService from '../config/firebaseService';
import {Actions} from 'react-native-router-flux';
import Modal from "react-native-modal";
import { Dialog,ConfirmDialog } from 'react-native-simple-dialogs';
import Toast, {DURATION} from 'react-native-easy-toast';
import Expo from 'expo';
var height = Dimensions.get('window').height;
var width = Dimensions.get('window').width;
import styles from "../styles/loginStyle";
import {apiUrl,netErrorMsg,facebookId,androidGoogleClientId,iosGoogleClientId,firebaseConfig} from "../config/constant";
export default class Login extends Component<{}> {
constructor(props) {
super(props);
this.state = {
email:'',
password:'',
forgotEmail:'',
versionName:'',
loading:false,
isModalVisible: false,
netStatus:'none',
dialogVisible:false,
errorForgotEmail:""
}
}
node.js reactjs firebase react-native
I got this error when i run the exp start command. How can I solve this error?
This is my login.js
file code.
I am new to React native, using js to run a native app using expo, so I am stuck. I don't know why it gives me this error and how to handle it.
import React, { Component } from 'react';
import {
Alert,
StyleSheet,
Text,
View,
TextInput,
TouchableOpacity,
Image,
AsyncStorage,
KeyboardAvoidingView,
Dimensions,
ActivityIndicator,
NetInfo,
BackHandler,
DeviceEventEmitter
} from 'react-native';
import * as firebase from 'firebase';
import firebaseService from '../config/firebaseService';
import {Actions} from 'react-native-router-flux';
import Modal from "react-native-modal";
import { Dialog,ConfirmDialog } from 'react-native-simple-dialogs';
import Toast, {DURATION} from 'react-native-easy-toast';
import Expo from 'expo';
var height = Dimensions.get('window').height;
var width = Dimensions.get('window').width;
import styles from "../styles/loginStyle";
import {apiUrl,netErrorMsg,facebookId,androidGoogleClientId,iosGoogleClientId,firebaseConfig} from "../config/constant";
export default class Login extends Component<{}> {
constructor(props) {
super(props);
this.state = {
email:'',
password:'',
forgotEmail:'',
versionName:'',
loading:false,
isModalVisible: false,
netStatus:'none',
dialogVisible:false,
errorForgotEmail:""
}
}
node.js reactjs firebase react-native
node.js reactjs firebase react-native
edited Jan 3 at 8:36


James Westgate
8,72454660
8,72454660
asked Jan 3 at 7:05
vivek manavadariyavivek manavadariya
174211
174211
Share the code from where thefirebase
is referenced from 'srccontainersLogin.js'
– Suraj Malviya
Jan 3 at 7:11
Now i solved that problem now it's gives me this error Unable to resolve "scheduler/tracing" from "node_modulesreact-nativeLibrariesRendererossReactNativeRenderer-dev.js"
– vivek manavadariya
Jan 3 at 7:27
add a comment |
Share the code from where thefirebase
is referenced from 'srccontainersLogin.js'
– Suraj Malviya
Jan 3 at 7:11
Now i solved that problem now it's gives me this error Unable to resolve "scheduler/tracing" from "node_modulesreact-nativeLibrariesRendererossReactNativeRenderer-dev.js"
– vivek manavadariya
Jan 3 at 7:27
Share the code from where the
firebase
is referenced from 'srccontainersLogin.js'– Suraj Malviya
Jan 3 at 7:11
Share the code from where the
firebase
is referenced from 'srccontainersLogin.js'– Suraj Malviya
Jan 3 at 7:11
Now i solved that problem now it's gives me this error Unable to resolve "scheduler/tracing" from "node_modulesreact-nativeLibrariesRendererossReactNativeRenderer-dev.js"
– vivek manavadariya
Jan 3 at 7:27
Now i solved that problem now it's gives me this error Unable to resolve "scheduler/tracing" from "node_modulesreact-nativeLibrariesRendererossReactNativeRenderer-dev.js"
– vivek manavadariya
Jan 3 at 7:27
add a comment |
1 Answer
1
active
oldest
votes
Looks like you are trying to import firebase
from your Login.js
in some file. Remove that import and import firebase as you have imported it in your Login.js
. This will resolve the problem.
Now i solved that problem now it's gives me this error Unable to resolve "scheduler/tracing" from "node_modulesreact-nativeLibrariesRendererossReactNativeRenderer-dev.js"
– vivek manavadariya
Jan 3 at 7:27
Refresh you node_modules,rm -rf node_modules
and thenyarn install
/npm install
and then start your packager with no previous cache usingnpm start --reset-cache
– Suraj Malviya
Jan 3 at 7:29
i try this one but it's show same error again
– vivek manavadariya
Jan 3 at 7:39
when install npm then it's show this warninig npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modulesfsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
– vivek manavadariya
Jan 3 at 7:49
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54017755%2funable-to-resolve-firebase-from-src-containers-login-js%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Looks like you are trying to import firebase
from your Login.js
in some file. Remove that import and import firebase as you have imported it in your Login.js
. This will resolve the problem.
Now i solved that problem now it's gives me this error Unable to resolve "scheduler/tracing" from "node_modulesreact-nativeLibrariesRendererossReactNativeRenderer-dev.js"
– vivek manavadariya
Jan 3 at 7:27
Refresh you node_modules,rm -rf node_modules
and thenyarn install
/npm install
and then start your packager with no previous cache usingnpm start --reset-cache
– Suraj Malviya
Jan 3 at 7:29
i try this one but it's show same error again
– vivek manavadariya
Jan 3 at 7:39
when install npm then it's show this warninig npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modulesfsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
– vivek manavadariya
Jan 3 at 7:49
add a comment |
Looks like you are trying to import firebase
from your Login.js
in some file. Remove that import and import firebase as you have imported it in your Login.js
. This will resolve the problem.
Now i solved that problem now it's gives me this error Unable to resolve "scheduler/tracing" from "node_modulesreact-nativeLibrariesRendererossReactNativeRenderer-dev.js"
– vivek manavadariya
Jan 3 at 7:27
Refresh you node_modules,rm -rf node_modules
and thenyarn install
/npm install
and then start your packager with no previous cache usingnpm start --reset-cache
– Suraj Malviya
Jan 3 at 7:29
i try this one but it's show same error again
– vivek manavadariya
Jan 3 at 7:39
when install npm then it's show this warninig npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modulesfsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
– vivek manavadariya
Jan 3 at 7:49
add a comment |
Looks like you are trying to import firebase
from your Login.js
in some file. Remove that import and import firebase as you have imported it in your Login.js
. This will resolve the problem.
Looks like you are trying to import firebase
from your Login.js
in some file. Remove that import and import firebase as you have imported it in your Login.js
. This will resolve the problem.
answered Jan 3 at 7:23


Suraj MalviyaSuraj Malviya
1,045516
1,045516
Now i solved that problem now it's gives me this error Unable to resolve "scheduler/tracing" from "node_modulesreact-nativeLibrariesRendererossReactNativeRenderer-dev.js"
– vivek manavadariya
Jan 3 at 7:27
Refresh you node_modules,rm -rf node_modules
and thenyarn install
/npm install
and then start your packager with no previous cache usingnpm start --reset-cache
– Suraj Malviya
Jan 3 at 7:29
i try this one but it's show same error again
– vivek manavadariya
Jan 3 at 7:39
when install npm then it's show this warninig npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modulesfsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
– vivek manavadariya
Jan 3 at 7:49
add a comment |
Now i solved that problem now it's gives me this error Unable to resolve "scheduler/tracing" from "node_modulesreact-nativeLibrariesRendererossReactNativeRenderer-dev.js"
– vivek manavadariya
Jan 3 at 7:27
Refresh you node_modules,rm -rf node_modules
and thenyarn install
/npm install
and then start your packager with no previous cache usingnpm start --reset-cache
– Suraj Malviya
Jan 3 at 7:29
i try this one but it's show same error again
– vivek manavadariya
Jan 3 at 7:39
when install npm then it's show this warninig npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modulesfsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
– vivek manavadariya
Jan 3 at 7:49
Now i solved that problem now it's gives me this error Unable to resolve "scheduler/tracing" from "node_modulesreact-nativeLibrariesRendererossReactNativeRenderer-dev.js"
– vivek manavadariya
Jan 3 at 7:27
Now i solved that problem now it's gives me this error Unable to resolve "scheduler/tracing" from "node_modulesreact-nativeLibrariesRendererossReactNativeRenderer-dev.js"
– vivek manavadariya
Jan 3 at 7:27
Refresh you node_modules,
rm -rf node_modules
and then yarn install
/npm install
and then start your packager with no previous cache using npm start --reset-cache
– Suraj Malviya
Jan 3 at 7:29
Refresh you node_modules,
rm -rf node_modules
and then yarn install
/npm install
and then start your packager with no previous cache using npm start --reset-cache
– Suraj Malviya
Jan 3 at 7:29
i try this one but it's show same error again
– vivek manavadariya
Jan 3 at 7:39
i try this one but it's show same error again
– vivek manavadariya
Jan 3 at 7:39
when install npm then it's show this warninig npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modulesfsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
– vivek manavadariya
Jan 3 at 7:49
when install npm then it's show this warninig npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modulesfsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
– vivek manavadariya
Jan 3 at 7:49
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54017755%2funable-to-resolve-firebase-from-src-containers-login-js%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Share the code from where the
firebase
is referenced from 'srccontainersLogin.js'– Suraj Malviya
Jan 3 at 7:11
Now i solved that problem now it's gives me this error Unable to resolve "scheduler/tracing" from "node_modulesreact-nativeLibrariesRendererossReactNativeRenderer-dev.js"
– vivek manavadariya
Jan 3 at 7:27