Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

363
Vistas
How to fix the error stating React Native Firebase was successfully found, but the main module could not be resolved?

I am trying to get the code output to show without any errors, but every time I run this code I get an error stating the "iOS Bundling failed. While trying to resolve module firebase from file C:\Internship\src\App.js, the package C:\Internship\node_modules\firebase\package.json was successfully found. However, this package itself specifies a main module field that could not be resolved (C:\Internship\node_modules\firebase\index. Indeed, none of these files exist:

  • C:\Internship\node_modules\firebase\index(.native|.ios.ts|.native.ts|.ts|.ios.tsx|.native.tsx|.tsx|.ios.js|.native.js|.js|.ios.jsx|.native.jsx|.jsx|.ios.json|.native.json|.json)
  • C:\Internship\node_modules\firebase\index\index(.native|.ios.ts|.native.ts|.ts|.ios.tsx|.native.tsx|.tsx|.ios.js|.native.js|.js|.ios.jsx|.native.jsx|.jsx|.ios.json|.native.json|.json)"

//Importing Libraries to create App
import React, {Component} from 'react';
import { View } from 'react-native';
import firebase from 'firebase';
import {Header} from './components/common';
import LoginForm from './components/LoginForm';

//Creating App class
class App extends Component{
    //Initalizing Firebase 
    componentWillMount(){
        firebase.initializeApp({
            apiKey: 'AIzaSyDaAOmCb2Agiu7JRLlOUG0Mv7O4VxH-Od8',
            authDomain: 'oakpark-service-app.firebaseapp.com',
            projectId: 'oakpark-service-app',
            storageBucket: 'oakpark-service-app.appspot.com',
            messagingSenderId: '662166215544',
            appId: '1:662166215544:web:e433baacc7d1a9c219068d',
            measurementId: 'G-PZ6LLVFNFD'
          });
    }

    render(){
        return(
            <View>
                <Header headerText="Login/Sign Up" />
                <LoginForm />
            </View>
        );
    }
}

//Exporting App class to use in different files
export default App;
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/16.6.3/umd/react.production.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react-dom/16.6.3/umd/react-dom.production.min.js"></script>

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda