Giter VIP home page Giter VIP logo

Comments (9)

DellaBitta avatar DellaBitta commented on July 16, 2024

Hi @msureshmewara,

It looks like the error originates in File: (file: src/webpack:/june_5/webpack/bootstrap:27:0). Any chance you know what that line is doing?

from firebase-js-sdk.

msureshmewara avatar msureshmewara commented on July 16, 2024

@DellaBitta : "@nativescript/webpack": "5.0.21", - Its a webpack file

from firebase-js-sdk.

ehsannas avatar ehsannas commented on July 16, 2024

Perhaps this is where it's complaining about?

System.err: ./node_modules/@grpc/grpc-js/build/src/logging.js(file: src/webpack:/june_5/node_modules/@grpc/grpc-js/build/src/logging.js:37:43)

Can you check node_modules/@grpc/grpc-js/build/src/logging.js:37:43 and let us know what it is?

The closest thing I can find is this, and if that's giving you Cannot read property 'env' of undefined, it means that process was undefined for some reason. (this code in grpc has been there for 3 years, and I doubt it's the culprit).

from firebase-js-sdk.

msureshmewara avatar msureshmewara commented on July 16, 2024

@ehsannas : Process.env - process is always undefined.

const verbosityString =
process.env.GRPC_NODE_VERBOSITY ?? process.env.GRPC_VERBOSITY ?? '';

from firebase-js-sdk.

DellaBitta avatar DellaBitta commented on July 16, 2024

Hi @msureshmewara,

This looks to be an error in the build process of your application. It appears that the bundler is bringing in the Node.js version of the Firebase SDK but then executing the build in a non-node environment. You'll need to do some debugging of your app's build pipeline to determine why that might be the case.

from firebase-js-sdk.

msureshmewara avatar msureshmewara commented on July 16, 2024

@DellaBitta : Thank you :), The error occurs only when I am trying to initialize the firebase/firestore.

initializeApp(this.firebaseConfig); // This function is working fine.

getFirestore(this.app); // Once we call this getting the above error.

from firebase-js-sdk.

DellaBitta avatar DellaBitta commented on July 16, 2024

I understand, but it appears that the build pipeline is bringing in the node version of Firestore when it shouldn't be.

from firebase-js-sdk.

google-oss-bot avatar google-oss-bot commented on July 16, 2024

Hey @msureshmewara. We need more information to resolve this issue but there hasn't been an update in 5 weekdays. I'm marking the issue as stale and if there are no new updates in the next 5 days I will close it automatically.

If you have more information that will help us get to the bottom of this, just add a comment!

from firebase-js-sdk.

google-oss-bot avatar google-oss-bot commented on July 16, 2024

Since there haven't been any recent updates here, I am going to close this issue.

@msureshmewara if you're still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this.

from firebase-js-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.