It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Deploying firebase function with typescript fails with `Unknown problem parsing function triggers`. 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
Community showcase
Published in Bitbucket Pipelines

What We Learned When We Researched Open Source Vulnerabilities in 7 Popular Coding Languages

...hey are a part of us, shaping how we interact with the world around us. The same holds true for programming languages when we think about how different kinds of vulnerabilities raise their heads in t...

1,051 views 0 3
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you