Did someone connect Firestore to wix? I get a protobuf error

Hi, using the npm module ‘firebase’ and requiring the “firebase/app” and “firebase/firestore” modules from it, I get a “backend/firebase.jsw” (this is my file) web module could not be loaded due to “Cannot find module ‘protobufjs’” error.

Any ideas?

FYI - I loaded the exact same code with the newest ‘firebase’ npm in Google Cloud Functions and everything works just right. So, it is not a code problem.

https://github.com/firebase/firebase-admin-node/issues/338
https://github.com/DoctorMcKay/node-globaloffensive/issues/22
https://stackoverflow.com/questions/51814141/cannot-deploy-firebase-cloud-functions-cannot-find-module-protobufjs-minimal?rq=1

Great find @sailorcihan thanks! At the same time what should i do with it? The npm is not under my influence. Seems Wix should import it differently without dev dependencies, or import a different/latest version?

@zsoltkovacs
Yes you are stuck with what Wix offers you through their Package Manager.

Have you simply checked the NPM library and seen if this protobufjs module is allowed in Wix?
It is was then maybe you could just try adding it yourself through Wix to see if it fixes the issue.

Otherwise, if you do have to use it through Wix, then you might have to resort to doing it the older way and go back to using Wix Fetch or Wix HTTP Functions and go through their APIs again.

Hopefully the Wix Admin/Mods in this forum can get involved with this issue and see if they can find a working solution or at least a workaround so that it can be used properly. :crossed_fingers:

Any update on this? I’m getting the same error.

Please add a new forum post for this instead of bumping old posts with links for reference back to them.

Add it.