Skip to content

Functions Emulator not loading .env files #6621

Closed as not planned
Closed as not planned

Description

@junaga
  • firebase --version: 13.0.2
  • Platform: Linux

The documentation has an entire section, twice, about how the Firebase Functions Emulator loads ./.env + ./.env.local. Well, that feature just does not work. I tried everything.

Activity

  1. google-oss-bot commented on Dec 17, 2023

    @google-oss-bot
    Collaborator

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

  2. aalej commented on Dec 18, 2023

    @aalej
    Contributor

    Hey @junaga, thanks for reaching out. I tried to reproduce the behavior you mentioned, but I did not encounter any issues with loading the variables from .env.

    Could you please file a new issue specifying the details using the provided template? This way, it would be more efficient in identifying the cause of the issue.

    It would also be helpful if you could provide an MCVE or code snippets so that we can try to replicate it on our end.

    That said, I'll be closing this issue.

  3. junaga commented on Dec 18, 2023

    @junaga
    Author

    @aalej hi, i'll make a repo. brb

  4. junaga commented on Dec 18, 2023

    @junaga
    Author

    okay it works for me too, unfortunately i do not remember which commit it failed on, and i did a rebase in the meantime too. but i know the issue somehow exists. sorry again @aalej, i should have started with a repro. have a nice day

  5. junaga commented on Dec 18, 2023

    @junaga
    Author

    the only real change i had was upgrade to default-jdk from openjdk-11-jdk

  6. aalej commented on Dec 18, 2023

    @aalej
    Contributor

    No worries, I'm glad to hear that you got it working! I'm not exactly sure how upgrading from openjdk-11-jdk to default-jdk would cause this, but in case you encounter this issue in the future, feel free to reach out to us again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions