Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

270
Views
Firebase Functions deploy fails 'There was an error deploying Functions' with Easypost

Hello fellow world peace and Moonbase-36 residents, Deploying this firebase function Fails because I've added EASYPOST into the file. Do I need to create another functions file and deploy that to make this work?

// require('babel-polyfill');
const functions = require("firebase-functions");
const cors = require("cors");
const express = require("express");
const EasyPost = require('@easypost/api');
const EPapi = new EasyPost('YOURAPIKEY');

const app = express();
const stripe = require("stripe")("APIKEY");

As soon as I comment out the const EasyPost and const EPapi, the deploy works fine. But we need Easypost to work.

firebase functions:log Detailed stack trace: Error: Cannot find module '@easypost/api'

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

OP resolved the issue by installing Easypost using npm install Easypost into the Functions folder to have it as dependency in firebase functions. The functions were deployed without errors.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!