-
Notifications
You must be signed in to change notification settings - Fork 171
Check process.env exists #199
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
Conversation
Some build systems or other sometimes add `window.process` in browser but not always add `window.process.env`. For example, a project created with Nuxt3 will crash due to this problem. Please check `process.env` exists or not.
codecov-commenter
commented
Feb 8, 2022
Codecov Report
@@ Coverage Diff @@ ## main #199 +/- ## ======================================= Coverage 98.13% 98.13% ======================================= Files 16 16 Lines 964 964 Branches 206 206 ======================================= Hits 946 946 Misses 18 18
Continue to review full report at Codecov.
|
Thank you for the PR. It sounds almost good to me, but I rather prefer to use the latest syntax for null checking: #200 can you take a look at it?
No problem at all. I'll close this PR.
Thank you!
v2.7.2 has been released with the fix.
Some build systems or other sometimes add
window.process
in browser but not always addwindow.process.env
.For example, a project created with Nuxt3 will crash due to this problem.
Please check
process.env
exists or not.