Coder Social home page Coder Social logo

Comments (8)

trentjones21 avatar trentjones21 commented on June 1, 2024 7

@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.

shakirthow avatar shakirthow commented on June 1, 2024 2

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.

laurenzlong avatar laurenzlong commented on June 1, 2024

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.

janrop avatar janrop commented on June 1, 2024

Hey @laurenzlong. Sorry that was what npm gave me.
"firebase --version" is 3.9.1

from firebase-functions.

laurenzlong avatar laurenzlong commented on June 1, 2024

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.

laurenzlong avatar laurenzlong commented on June 1, 2024

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.

ubaidazad avatar ubaidazad commented on June 1, 2024

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.

GreyHat147 avatar GreyHat147 commented on June 1, 2024

The node v6.11.5 works for me!

from firebase-functions.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.