All Questions
101 questions
0
votes
1
answer
101
views
Firebase cloud function error when deploying
I get this error when I try to deploy the function (I tried both my original function and a test function to make sure the code has nothing to do with the error) my node version is v18.20.4 and cloud ...
0
votes
1
answer
75
views
firebase serve is not compiling typescript code before start
I've a very simple typescript firebase function project... the code works and is very simple, but there is something in the project configuration wrong that makes firebase serve NOT recompile the code ...
0
votes
1
answer
55
views
Unsupported environment in travis when deploying firebase via script, fsevents darwin
I'm upgrading my travis environment to node 20. I have a script which is deploying firebase functions.
Here is my .travis.yml
...
install: bash $HOME/build/ChangEdApps/changed-javascript/backend/...
1
vote
1
answer
247
views
Issue deploying Firebase functions - Cannot read property 'firebase-admin' of undefined
I'm encountering an issue while deploying Firebase functions, and I would appreciate any assistance in resolving it. The deployment itself seems fine, but I'm getting the following error:
Cannot read ...
0
votes
0
answers
90
views
Error in tsconfig.json in Firebase project for Cloud Functions
I tried to initiate a firebase project but this error appeared in tsconfig.json
Cannot find type definition file for 'node'.
The file is in the program because:
Entry point for implicit type library '...
1
vote
1
answer
205
views
Firebase Functions packages are not installing during deployment
Local build and emulation work without error (my code notwithstanding). On deployment, Firebase Hosting complains that the package and package-lock are not in sync.
Build failed: npm ERR! code EUSAGE
...
7
votes
6
answers
4k
views
Firebase function deployment fails with 'missing' dependencies error
I am encountering an error when attempting to deploy a Firebase function. Despite deleting node_modules and package-lock.json, running npm install, and executing firebase deploy --only functions many ...
1
vote
1
answer
455
views
Deploying of Firebase Cloud functions fails with private GitHub npm package
I´m trying to use my own private github typescript package for google cloud functions.
I can install the package locally, but when i try to run "firebase deploy" it throws an error.
The ....
10
votes
4
answers
2k
views
Build failed: npm ERR! Missing a lot of unknown packages
I initialized a new firebase project in my project. I added functions to my project and I am trying to deploy the default helloWorld function.
const functions = require("firebase-functions");...
0
votes
2
answers
284
views
Can't deploy functions to firebase
after running "firebase deploy --only functions" I get the next error
I have tried to delete de functions folder, and firebase files to try "firebase init" again, run nmp ci, and ...
0
votes
1
answer
647
views
Importing firebase cloud functions in a React project
I am building a react app (this part might be inconsequential) and have a server cloud function built:
exports.myFunction = functions.https.onCall(async (data, context) => {
...
}
I know that ...
4
votes
1
answer
752
views
Deploying to firebase functions using yarn as package manage manager
I am working on speeding up my firebase functions deployment and noticed that firebase functions use cloud build to download and install the dependencies from package.json serverside again and was ...
6
votes
3
answers
1k
views
Husky prepare script failing firebase function deployment
I have installed husky in my npm project as a prepare script like below
{
"name": "functions",
"scripts": {
"build": "tsc",
"start&...
6
votes
2
answers
2k
views
When deploying firebase cloud functions I get: Build failed: npm ERR! Cannot read property '@babel/core' of undefined
This has been the latest in a series of very frustrating errors I have been receiving the past
3 days with deploying my cloud functions.
When deploying I get:
firebase deploy --only "functions:...
-1
votes
1
answer
143
views
404 Not Found - GET https://registry.npmjs.org/database-debug.log - Not found When installing packages for Cloud Functions
When installing packages for Firebase Cloud Functions, I get the error:
404 Not Found - GET https://registry.npmjs.org/database-debug.log - Not found
When checking the above URL I indeed see:
{"...