Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Environment variable not found for field authKey. #1

Open
mrcodefrost opened this issue Nov 5, 2024 · 0 comments
Open

Environment variable not found for field authKey. #1

mrcodefrost opened this issue Nov 5, 2024 · 0 comments

Comments

@mrcodefrost
Copy link

I want to contribute but not able to run the project.

Tried running

dart run build_runner build

but getting error

[SEVERE] envied_generator:envied on lib/env/env.dart:

Environment variable not found for field authKey.
package:cms_flutter/env/env.dart:8:23

static final String authKey = _Env.authKey;

How can i get the .env file and if not then how to run the project ? Any guidance is appreciated, will document the same to repo if required

image

vishwamartur added a commit to vishwamartur/cms-mobile-flutter that referenced this issue Nov 5, 2024
Related to code100x#1

Update the environment variable for `authKey` and add documentation for setting up the `.env` file.

* **lib/env/env.dart**
  - Update the `@EnviedField` annotation to use `varName: 'AUTH_KEY'` instead of `varName: 'AUTH-KEY'`.

* **.gitignore**
  - Remove the `.env` entry from the ignore list.

* **.env**
  - Add a new `.env` file with the content `AUTH_KEY=your_auth_key_here`.

* **README.md**
  - Add a section to document the need for a `.env` file and the required `AUTH_KEY` variable.
  - Include instructions for running the project after setting up the `.env` file.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant