Giter VIP home page Giter VIP logo

Comments (6)

ZeBirdeh avatar ZeBirdeh commented on May 29, 2024 1

I also happened to have this problem, and I just recently downloaded firebase.

So, I decided to dig around in the code and found that it was trying to look for the path google\api\annotations.proto by going through the parent directories of ...\functions\node_modules\@google-cloud\firestore\protos\google\firestore\v1beta1\firestore.proto (which I believe was the previous include?), but since the annotations.proto was inside ...\node_modules\google-proto-files\google\api\annotations.proto it couldn't be found that way.

I did a temporary fix where I copied the google folder from inside google-proto-files outside into node_modules (which got rid of the error), but I think it has to do with the includePath passed to grpc.js. Is this error due to some version mismatch on my side?

Thank you so much!

from nodejs-firestore.

jkwlui avatar jkwlui commented on May 29, 2024 1

globby should be replaced in the most recent versions. :)

from nodejs-firestore.

schmidt-sebastian avatar schmidt-sebastian commented on May 29, 2024

Can you please provide the output of npm list? You should see a dependency on [email protected], which contains the missing file.

from nodejs-firestore.

hrandeniya avatar hrandeniya commented on May 29, 2024

Hi,

Here is a snippet of npm list.

Just as an update, I have pulled our repo onto a completely new machine and am still getting the same problems.

├─┬ [email protected]
│ │ │ ├── [email protected] deduped
│ │ │ ├── [email protected] deduped
│ │ │ ├─┬ [email protected]
│ │ │ │ ├─┬ [email protected]
│ │ │ │ │ └── [email protected] deduped
│ │ │ │ ├─┬ [email protected]
│ │ │ │ │ ├── [email protected] deduped
│ │ │ │ │ └─┬ [email protected]
│ │ │ │ │   └── [email protected] deduped
│ │ │ │ ├─┬ [email protected]
│ │ │ │ │ ├─┬ @mrmlnc/[email protected]
│ │ │ │ │ │ ├── [email protected]
│ │ │ │ │ │ └── [email protected]
│ │ │ │ │ ├── [email protected] deduped
│ │ │ │ │ ├── [email protected] deduped
│ │ │ │ │ ├── [email protected]
│ │ │ │ │ └── [email protected] deduped
│ │ │ │ ├── [email protected] deduped
│ │ │ │ ├── [email protected] deduped
│ │ │ │ ├── [email protected]
│ │ │ │ └── [email protected]
│ │ │ ├── [email protected] deduped
│ │ │ ├─┬ [email protected]

from nodejs-firestore.

idevelop avatar idevelop commented on May 29, 2024

Hey @hrandeniya, @schmidt-sebastian, I think I found the root cause of this issue: special characters in the user's project path cause globby to fail to expand the include paths so grpc can't find the proto files. In this specific case it exhibits the same cause as me: the Dropbox folder has an extra (something) in its name, and the parenthesis is throwing globby pattern matching off.

See googleapis/nodejs-datastore#297

from nodejs-firestore.

schmidt-sebastian avatar schmidt-sebastian commented on May 29, 2024

Thank you for your update! We will look at this internally and can hopefully address this soon.

from nodejs-firestore.

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.