-
Notifications
You must be signed in to change notification settings - Fork 346
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
The ENCORE_RUNTIME_LIB environment variable is not set #1611
Comments
I fixed with env var: The load of
If an user want to change the path, he must change both Note: documentation also needs to be updated |
Hey @rtritto To start encore locally, you should use the encore cli that will setup all infra and env, e.g:
|
Hi @fredr, this issue is related to the JS environment (the start of the server is a separated environment) |
And the Linux version of the fix for those who's struggling
|
@rtritto could you explain a bit what you are trying to solve? In what scenario do you want to run it this way? |
@fredr the JS encore.dev dependency should use a default value to load JS runtime To achieve that, we have at least 3 alternatives:
Also the documentation needs to be updated with all references and env vars. My scenario is the development. |
I still don't understand what you're trying to do; under what circumstance is the |
I have a project with a file that imports The setup of The APIs should be started using an entrypoint from a file in the project. Also I don't need the dashboard service that Maybe Encore was designed to work differently. |
It is not designed to be used like that, no. Due to how Encore's request decoding/response encoding works, it requires the pre-computed API schemas to be provided ("the metadata"). This must be provided via What's more, all of Encore's infrastructure resources additionally require runtime configuration to be provided, so that Encore's runtime knows where the infrastructure is located, what implementation to use, how to authenticate, etc. In short, setting |
Ok, thanks for the infos. So if In the JS encore.dev dependency, maybe it's better to add an error message. Eg: |
I feel like the error message is reasonably clear as-is? It seems incorrect to mention |
Reproduction
git clone https://github.com/rtritto/repro-encore-win.git
cd repro-encore-win
git checkout missing-env
yarn
yarn start
ORnode ./start.mjs
Info
OS: Windows 11
Node: v22
encore.dev: v1.44.6 (same behavior with v1.44.5)
encode installed v1.44.5
yarn berry with PnP (Plug'n'Play)
The text was updated successfully, but these errors were encountered: