question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Issue when using the latest firebase version

See original GitHub issue

Android Bundling failed 4326ms While trying to resolve module idbfrom fileD:###\node_modules@firebase\app\dist\esm\index.esm2017.js, the package D:###\node_modules\idb\package.jsonwas successfully found. However, this package itself specifies amain module field that could not be resolved (D:###\node_modules\idb\build\index.cjs. Indeed, none of these files exist:

To reproduce, initialize an expo project, npm install the latest firebase version, and import any module from firebase in the App.js file.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:14 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
SohelIslamImrancommented, May 11, 2022

@crunchytoast Thank you. Resolved.

Create a metro.config.js file in the project root. In the file add the file extension cjs. details

const { getDefaultConfig } = require("@expo/metro-config");

const defaultConfig = getDefaultConfig(__dirname);

defaultConfig.resolver.assetExts.push("cjs");

module.exports = defaultConfig;

image

1reaction
crunchytoastcommented, May 11, 2022

If you want a workaround, you can either downgrade your firebase version for now… or add a cjs reference in your metro.config file @SohelIslamImran

Read more comments on GitHub >

github_iconTop Results From Across the Web

Release Notes | Firebase - Google
This page provides a changelog that lists new SDK releases and describes updates to the Firebase console and Firebase services.
Read more >
Is the latest release version wrong? · Issue #3827 - GitHub
Guys, I'm trying to get all my pods on the latest version and I'm suffering to understand how versioning semantics work for Firebase....
Read more >
android - Firebase version update issue - Stack Overflow
As it is a transitive dependency used in firebase-messaging which means firebase-messaging already uses it. So just remove implementation ...
Read more >
Incidents - Firebase Status Dashboard
This page provides status information on the services that are part of Firebase. Check back here to view the current status of the...
Read more >
firebase - npm
Firebase JavaScript library for web and Node.js. Latest version: 9.15.0, last published: 17 days ago. Start using firebase in your project ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found