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

[Bug]: process.env.npm_package_version cannot be read in product #41870

Closed
3 tasks done
FlyBooks opened this issue Apr 16, 2024 · 1 comment
Closed
3 tasks done

[Bug]: process.env.npm_package_version cannot be read in product #41870

FlyBooks opened this issue Apr 16, 2024 · 1 comment
Labels

Comments

@FlyBooks
Copy link

Preflight Checklist

Electron Version

25.9.8

What operating system are you using?

Windows

Operating System Version

win10

What arch are you using?

x64

Last Known Working Electron version

No response

Expected Behavior

i wanna read the version data in the package.json in the production environment. That means process.env.npm_package_version has value in production environment.

Actual Behavior

only in the development mode, process.env.npm_package_version has value. And in the production mode, its value is undefined.

Testcase Gist URL

No response

Additional Information

No response

@nornagon
Copy link
Member

Thanks for reaching out!

The issues tracker is used for feature requests and bug reports, so you will probably have better luck with this question at one of the links at the project's Community page -- in particular, be sure to give the Electron Discord server a try.

I hope this helps!

@nornagon nornagon closed this as not planned Won't fix, can't repro, duplicate, stale Apr 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants