Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Deploying firebase function with typescript fails with `Unknown problem parsing function triggers`.

martisj December 14, 2019
There was an unknown problem while trying to parse function triggers. Please ensure you are using Node.js v6 or greater. 

My `functions/package.json` specifies `{engine: { node: 8 }}` and I am using firebase-deploy 0.3.6.

Deploying hosting worked fine with `EXTRA_ARGS: '--only hosting'`. However, removing this results in the error above. 

My bitbucket-pipelines.yml:
image: node:8.16.2

pipelines:
branches:
develop:
- step:
name: Build for test
script:
- npm install
- npm run build:ci:staging
artifacts:
- build/**
- step:
name: Deploy to test -> test.sway.surf
deployment: test
script:
- cd functions; npm install; cd ..
- pipe: atlassian/firebase-deploy:0.3.6
variables:
FIREBASE_TOKEN: $FIREBASE_TOKEN
PROJECT_ID: $FIREBASE_PROJECT
DEBUG: 'true'
- step:
name: Build for production
script:
- npm install
- npm run build:ci:production
artifacts:
- build/**
- step:
trigger: manual
name: Deploy to production -> sway.surf
deployment: production
script:
- cd functions; npm install; cd ..
- pipe: atlassian/firebase-deploy:0.3.6
variables:
FIREBASE_TOKEN: $FIREBASE_TOKEN
PROJECT_ID: $FIREBASE_PROJECT

 

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events