Giter VIP home page Giter VIP logo

Comments (7)

HathTech avatar HathTech commented on June 2, 2024

Hey, do
cd functions; yarn install

from shoppers.

rakhimian avatar rakhimian commented on June 2, 2024

Hey, do
cd functions; yarn install

Thank you!
But I've Mac OS. So I tried by adding brew install yarn. But it's still getting error ..

Error: Error occurred while parsing your function triggers.

/Users/air/AndroidStudioProjects/snabzenie/functions/index.js:19
import * as functions from 'firebase-functions'
^

SyntaxError: Unexpected token *
at Module._compile (internal/modules/cjs/loader.js:723:23)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at /usr/local/lib/node_modules/firebase-tools/lib/triggerParser.js:15:15
at Object. (/usr/local/lib/node_modules/firebase-tools/lib/triggerParser.js:53:3)
at Module._compile (internal/modules/cjs/loader.js:778:30)

Having trouble? Try firebase deploy --help
Air-Rakhimyan:snabzenie air$ yarn -v
1.19.1
Air-Rakhimyan:snabzenie air$

from shoppers.

HathTech avatar HathTech commented on June 2, 2024

Hey, Follow the steps like this.

  • Go to the functions directory
  • There you can install yarn install

If you are still facing this issue share a video of what you are doing to [email protected]

from shoppers.

rakhimian avatar rakhimian commented on June 2, 2024

Hi, look

Air-Rakhimyan:functions air$ yarn install
yarn install v1.19.1
[1/5] πŸ”  Validating package.json...
error functions@: The engine "node" is incompatible with this module. Expected version "8". Got "10.16.3"
error Found incompatible module.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
Air-Rakhimyan:functions air$

from shoppers.

HathTech avatar HathTech commented on June 2, 2024

Use node version 8.

from shoppers.

rakhimian avatar rakhimian commented on June 2, 2024

Here my package.json file

{
  "name": "functions",
  "description": "Cloud Functions for Firebase",
  "scripts": {
    "serve": "firebase serve --only functions",
    "shell": "firebase functions:shell",
    "start": "npm run shell",
    "deploy": "firebase deploy --only functions",
    "logs": "firebase functions:log"
  },
  "engines": {
    "node": "8"
  },
  "dependencies": {
    "firebase-admin": "^8.6.0",
    "firebase-functions": "^3.3.0"
  },
  "devDependencies": {
    "firebase-functions-test": "^0.1.6"
  },
  "private": true
}

Node version

Air-Rakhimyan:~ air$ node -v
v10.16.3

So if it's not same please help me how I can install needed node version? Thanks!

from shoppers.

HathTech avatar HathTech commented on June 2, 2024

Hey have you purchased this product from
https://1.envato.market/07QmM

If not do purchase it and join our gitlab repository for latest code.

If yes share your invoice and gitlab email to [email protected]

from shoppers.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.