Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

martisj
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 14, 2019 edited
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
atlassian, forge, forge learning path, atlassian learning, cloud app development, forge app development, build forge apps, atlassian certification, developer training, jira app development, confluence app development, automation, ui frameworks

Turn Ideas into Atlassian Apps 📱

From setup to deployment—this learning path shows you how to build your first app using Forge. Learn the essentials, streamline workflows, and bring custom solutions to life across Jira, Confluence, and more.

Start Learning
AUG Leaders

Atlassian Community Events