We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hey 👋🏻
A RangeError (more specifically Maximum call stack size exceeded) is raised when we declare a variable with the same name as the expanded variable.
RangeError
Maximum call stack size exceeded
e.g.,
MY_VAR=${MY_VAR}
If we change the value to something else. It works just fine.
This is an issue in dotenv-expand, and it was fixed in 11.0.0 (more details in the linked issues).
dotenv-expand
Even though the issue is already fixed in dotenv-expand, we still use version 5.1.0 here.
5.1.0
vite-plugin-env-compatible/package.json
Line 48 in 12cd100
Also, since 5.1.0 is not compatible with version 11.0.0 (as expected 😅), we cannot force a resolution to 11.0.0 in the user project.
11.0.0
We need to bump dotenv-expand to at least 11.0.0 to fix this issue.
In the meantime, we can declare variables this way, and it should work:
MY_VAR='\${MY_VAR}'
Not sure if I'm missing something here. So please let me know.
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Hey 👋🏻
Context
A
RangeError
(more specificallyMaximum call stack size exceeded
) is raised when we declare a variable with the same name as the expanded variable.e.g.,
If we change the value to something else. It works just fine.
This is an issue in
dotenv-expand
, and it was fixed in 11.0.0 (more details in the linked issues).Description
Even though the issue is already fixed in
dotenv-expand
, we still use version5.1.0
here.vite-plugin-env-compatible/package.json
Line 48 in 12cd100
Also, since
5.1.0
is not compatible with version11.0.0
(as expected 😅), we cannot force a resolution to11.0.0
in the user project.Solution
We need to bump
dotenv-expand
to at least11.0.0
to fix this issue.In the meantime, we can declare variables this way, and it should work:
Links
Not sure if I'm missing something here. So please let me know.
The text was updated successfully, but these errors were encountered: