Comments (8)
@ubaidazad I came here looking for a solution to the same problem. Switching to node v6.11.5 fixed it for me. Might be worth a shot.
from firebase-functions.
EDIT: @laurenzlong So this error occurs when there is some JS error in the bundle code. in my case I was using firebase UI and was generating the error "window not found" since firebaseUI does not support SSR. I think it will be great if the emulator can give the actual stack trace so we know! :)
unfortunately this still happens. this is the error log
⚠ functions: Failed to load functions source code. Ensure that you have the latest SDK by running npm i --save firebase-functions inside the functions directory. ⚠ functions: Error from emulator. Error at FirebaseError (/usr/local/lib/node_modules/firebase-tools/lib/error.js:11:17) at ChildProcess.<anonymous> (/usr/local/lib/node_modules/firebase-tools/lib/parseTriggers.js:24:16) at emitTwo (events.js:125:13) at ChildProcess.emit (events.js:213:7) at emit (internal/child_process.js:774:12) at _combinedTickCallback (internal/process/next_tick.js:141:11) at process._tickDomainCallback (internal/process/next_tick.js:218:9)
from firebase-functions.
hey @janrop thanks for reporting, 3.10.10 is not an actual firebase-tools version (see https://github.com/firebase/firebase-tools/releases). Can you run "firebase --version" and update the issue with what it prints out?
from firebase-functions.
Hey @laurenzlong. Sorry that was what npm gave me.
"firebase --version" is 3.9.1
from firebase-functions.
hey @janrop I'm unable to reproduce this. Can you try updating your firebase-tools by running:
npm install -g firebase-tools
There is now a new release of firebase-tools (v.3.9.2) that requires a higher version of google-cloud/functions-emulator, which has some bug fixes.
Please reopen the issue if that doesn't fix it.
from firebase-functions.
This is the same issue as firebase/firebase-tools#482, which I will work on fixing. You can follow the progress there.
from firebase-functions.
still getting the same error in latest firebase-tools
i functions: Preparing to emulate functions.
Node.js v6.11.x or greater is required to run the Emulator!
! functions: Failed to load functions source code. Ensure that you have the latest SDK by running npm i --save firebase-functions inside the functions directory.
! functions: Error from emulator. Error: Emulator crashed! Check the log file...
Shutting down...
node -> v6.11.0
npm -> 3.10.10
firebase -> 3.16.0
from firebase-functions.
The node v6.11.5 works for me!
from firebase-functions.
Related Issues (20)
- How to deploy function with latest secrets at RUNTIME? HOT 2
- DocumentOptions do not allow parameterized configuration values HOT 2
- Various Firebase functions started reporting crash: Maximum call stack size exceeded HOT 10
- regression with firebase-functions-test wrapping a v1 scheduled function HOT 2
- Please move `node-fetch` as a `devDependency` HOT 1
- `getDownloadURL` function fails in emulator mode if storage rules are not allowed HOT 3
- Consider exporting `SecretParam` type HOT 3
- CORS error when calling v2 functions using onCall HOT 3
- CallableOptions doesn't accept BooleanParam which is accepted by HttpsOptions HOT 2
- Structured logging error context not being serialized HOT 3
- Don't verify auth token on public endpoints HOT 5
- Firebase Blocking Auth Functions Run Incorrectly on Failed Signup HOT 2
- Module '"firebase-functions/v1"' has no exported member 'onInit'. HOT 5
- Single CORS origin ignored for `onCall` HOT 1
- Auth onCreate trigger doesn't trigger in emulators with magic link sign in flow HOT 2
- Firebase Functions v2 missing labels for documentOnwritten HOT 3
- defineSecret creates a list of values in Secret Manager HOT 3
- Firestore triggers have authType unknown when I make updates to documents from the firebase console HOT 2
- [logger]: express deprecated req.host: Use req.hostname instead HOT 1
- Any Document Trigger Failing for nested triggers HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from firebase-functions.