K
K
kuronokey2021-04-01 13:40:48
JavaScript
kuronokey, 2021-04-01 13:40:48

Firebase SDK running in nw.js?

6065a15a5f03c693291513.jpeg

Application in Javascript, built with nwjs.io I

wrote an application, and everything would be fine, if not for one thing... After building the nwjs.io application, the Firebase SDK stops working. Those. it works fine if you do not include node.js in the assembly. When launched, the Firebase library checks if node.js is "nearby" there, and if it is, it does not allow it to work. Although in fact it does not affect the work in any way.

3 scripts

are connected https://www.gstatic.com/firebasejs/8.0.0/firebase-...
https://www.gstatic.com/firebasejs/8.0.0/firebase-...
https://www .gstatic.com/firebasejs/8.0.0/firebase-...

Well, the solution seems to be simple. We take and do npm install --save firebase We

connect them via require("firebase/auth");

And then there's a new problem. Everything works except https
://firebaseopensource.com/projects/firebase/f...
the standard login forms stop working. You have to write your own.
The current environment does not support the specified persistence type.

Tell me where Google has versions for development, and not minified, so that you can fix them.
Or how can I solve this problem without rewriting the application
Thank you.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question