Hi,
Is it possible to import Firebase library into HTML Canvas?
Looks like it’s having issues importing the library:
Uncaught SyntaxError: Unexpected token ‘export’ (at firebase-app.js:1577:1)
firebase-firestore.js:1 Uncaught SyntaxError: Cannot use import statement outside a module (at firebase-firestore.js:1:1)
htmlcanvas:73 Uncaught ReferenceError: initializeApp is not defined
at window.onload (htmlcanvas:73:13)
I included the following urls to the 3rd party library:
https://www.gstatic.com/firebasejs/9.1.1/firebase-app.js
https://www.gstatic.com/firebasejs/9.1.1/firebase-firestore.js
Following the instruction on google’s document:
https://firebase.google.com/docs/web/setup