Closed nmarseaud closed 5 years ago
Can you push a commit in another branch to see all the source ?
Hi @nmarseaud this plugin is not bundled with firebase and firestore libraries so you have to include them manually (eg. https://www.gstatic.com/firebasejs/4.13.0/firebase.js
and https://www.gstatic.com/firebasejs/4.13.0/firebase-firestore.js
)
Hello there,
I am new to vuejs and grapesjs, and I was wondering if someone here could help me understand why the plugin doesn't find the firebase variable. I didn't manage to reproduce my local env on a codepen, because I used the vue-cli to install the project. So all I got is the base script.
Here is the error
In the plugin file, the error comes from the firebase.initializeApp. So the first time firebase is called. If I console.log the firebase variable before the editor.init, the "firebase" variable is set up. Even in previous lifecycle phases. So my first guess is that the plugin doesn't have access to the variable somehow ?
Other plugins like gjs-preset-newsletter seem to work fine, so I think it's just a problem on my part with the management of vue and the importation of the modules. Does anyone has an idea ?
package.json