dalenguyen / firebase-wordpress-plugin

A plugin that helps to integrate Firebase to WordPress
https://firebase-wordpress-docs.readthedocs.io
GNU General Public License v2.0
110 stars 31 forks source link

Update the wordpress firebase functions with problems #136

Closed mcollinar closed 3 years ago

mcollinar commented 3 years ago

Describe the bug Hi,

Im trying to update but i having this problem.... MacBook-Pro-de-Collina:functions mcollina$ firebase deploy --only functions --project novo-boca-a-boca

=== Deploying to 'novo-boca-a-boca'...

i deploying functions ✔ functions: Finished running predeploy script.

Error: package.json in functions directory has an engines field which is unsupported. The only valid choices are: {"node": "8"} and {"node": "10"}. MacBook-Pro-de-Collina:functions mcollina$

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots The version of the plugin. E.g PRO v0.5.5

Screenshots If applicable, add screenshots to help explain your problem. You can find the error code from inspecting the browser.

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

dalenguyen commented 3 years ago

Hi @mcollinar, please make sure to update firebase-tools package to the latest version.

You can try with

npm i -g firebase-tools

Then try it again. If it doesn't work, you can post the content of the file package.json here.

dalenguyen commented 3 years ago

Should be fixed now.