Coder Social home page Coder Social logo

Failed to load class Google\Cloud\Firestore\FirestoreClient used by typed property Kreait\Firebase\Firestore::$client during preloading about firebase-bundle HOT 5 CLOSED

badr-ou avatar badr-ou commented on June 29, 2024
Failed to load class Google\Cloud\Firestore\FirestoreClient used by typed property Kreait\Firebase\Firestore::$client during preloading

from firebase-bundle.

Comments (5)

dsech avatar dsech commented on June 29, 2024 2

I found a workaround by configuring public: false inside firebase.yaml.
This way Symfony did not include anymore the unused Kreait\Firebase\Firestore class in the preload script.

I suppose it would be nice to avoid this issue, by having public: false by default, or have an option to enable each service separately?

from firebase-bundle.

badr-ou avatar badr-ou commented on June 29, 2024

It's solved, it was a symfony environment problem.

from firebase-bundle.

dsech avatar dsech commented on June 29, 2024

@badr-ou I'm experiencing the same issue, how did you solve it?

from firebase-bundle.

blt909 avatar blt909 commented on June 29, 2024

@dsech we were targeting an non-created environment in symfony, basically using --env=staging while having no folder and not any env definition files in it

from firebase-bundle.

dsech avatar dsech commented on June 29, 2024

@blt909 Thanks, I think I'm encountering a different issue then, because the env is built and warmed up in my case, and the error appears only when using opcache.preload=/app/config/preload.php in php-fpm. My current workaround is to not use preloading at all, which isn't ideal.

I will debug some more to find what is my issue.

from firebase-bundle.

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.