firebase / firebase-tools

The Firebase Command Line Tools
MIT License
4.03k stars 943 forks source link

Failed to load function definition from source: FirebaseError: User code failed to load. Cannot determine backend specification #6007

Closed Sahmuraii closed 1 year ago

Sahmuraii commented 1 year ago

[REQUIRED] Environment info

image image

firebase-tools: 11.29.1

Platform: Ubuntu (Windows WSL)

[REQUIRED] Test case

Followed steps are said here: https://firebase.google.com/docs/functions/get-started?gen=1st

[REQUIRED] Expected behavior

No Error should have occurred ### [REQUIRED] Actual behavior

Error is being produced when I run firebase emulators:start --only functions image

Also attached debug-log firebase-debug.log

Maybe it's caused by updating the WSL? Not entirely sure though since it was working fine before and that's the only change I can think of.

google-oss-bot commented 1 year ago

This issue does not seem to follow the issue template. Make sure you provide all the required information.

aalej commented 1 year ago

Hi @Sahmuraii, thanks for reaching out. I am unable to reproduce the issue you’re encountering. I followed the steps in https://firebase.google.com/docs/functions/get-started?gen=1st, but no errors were raised when I started the emulator. As a first troubleshooting step, could you try updating to the latest version of firebase-tools which is currently v12.4.0.

It would also be helpful if you could provide an MCVE where the issue is reproducible so that I can try it out on my end? This will also help us narrow down the cause of the error. Thanks!

I’m using the following to replicate the issue:

google-oss-bot commented 1 year ago

Hey @Sahmuraii. We need more information to resolve this issue but there hasn't been an update in 7 weekdays. I'm marking the issue as stale and if there are no new updates in the next 3 days I will close it automatically.

If you have more information that will help us get to the bottom of this, just add a comment!

google-oss-bot commented 1 year ago

Since there haven't been any recent updates here, I am going to close this issue.

@Sahmuraii if you're still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this.

ugoi commented 8 months ago

I had the same problem. You have tu turn of Nordvpn or any other VPN. That fixed it.

Ragavi-raja commented 4 days ago

I had same problem, as i run the function command on the same window where i logged in for firebase CLI, Closing and opening the new cmd window helps and resolves the issue