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

Module not found: Error: Package path . is not exported from package F:\React-eco\myapp\node_modules\firebase (see exports field in F:\React-eco\myapp\node_modules\firebase\package.json) #1730

Closed
sureshjangid opened this issue May 30, 2022 · 10 comments

Comments

@sureshjangid
Copy link

sureshjangid commented May 30, 2022

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

const firebaseConfig = {
apiKey: " ** ",
authDomain: " ** ",
projectId: " ** ",
storageBucket: " ** ",
messagingSenderId: " ** ",
appId: " ** "
};

firebase.initializeApp(firebaseConfig);

const auth = firebase.auth();
const fs = firebase.firestore();
const storage = firebase.storage();

export {auth,fs,storage}

@google-oss-bot
Copy link

I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.

@lahirumaramba
Copy link
Member

lahirumaramba commented Jun 1, 2022

Hi @sureshjangid looks like you are using the https://github.com/firebase/firebase-js-sdk and not the firebase-admin-sdk. Could you confirm this, please?

In the future, please do not share any sensitive information about your project (including credentials and api keys) in public Github issues.

@lahirumaramba
Copy link
Member

Closing due to inactivity. We can reopen later if needed. Thanks!

@alijnmerchant21
Copy link

Was this issue solved? @lahirumaramba I'm having the same issue!

@apaarsadhh
Copy link

Having a similar issue? What is the fix? Can anyone please explain the root cause

@hjaelee01
Copy link

Having the same issue. How do I fix it?

@maru-koch
Copy link

This issue sucks! Any solution yet?

@lahirumaramba
Copy link
Member

Could you provide us with more information on how to reproduce this issue? A minimal repro would also help. Thanks!

1 similar comment
@kellatirupathi
Copy link

Could you provide us with more information on how to reproduce this issue? A minimal repro would also help. Thanks!

@Mo-Usman
Copy link

Just change your version of firebase in both package.json and packag-lock.json to 8.6.8, worked for me

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

No branches or pull requests

9 participants