0

Compiled with problems:X

ERROR in ./src/firebase.js 4:0-32

Module not found: Error: Package path . is not exported from package E:\khan\JavaScript\React\NetFilm\node_modules\firebase (see exports field in E:\khan\JavaScript\React\NetFilm\node_modules\firebase\package.json) Did you mean './firebase'? Requests that should resolve in the current directory need to start with './'. Requests that start with a name are treated as module requests and resolve within module directories (node_modules, E:\khan\JavaScript\React\NetFilm\node_modules). If changing the source code is not an option there is also a resolve options called 'preferRelative' which tries to resolve these kind of requests in the current directory too.

import firebase from 'firebase';
import 'firebase/auth';
import 'firebase/storage';

const firebaseConfig = {
    
  };


const firebaseApp = firebase.initializeApp(firebaseConfig);
const db = firebaseApp.firestore()
const auth = firebase.auth()

export {auth};
export default db;
  • Please check this https://stackoverflow.com/questions/70445014/module-not-found-error-package-path-is-not-exported-from-package – Arun Ravindran Oct 28 '22 at 06:25

0 Answers0