Skip to content

Conversation

@Isaacoder95
Copy link

Add validation to fix error undefined.

Add validation to fix error undefined.
@calvinmetcalf
Copy link
Contributor

so the issue is that version is an empty string ? If so we may want to be a bit more explicit about which of the encodings we use in that case

@Isaacoder95
Copy link
Author

Isaacoder95 commented Aug 27, 2020 via email

@calvinmetcalf
Copy link
Contributor

wait it can't be an empty string, because then process.version wouldn't be truthy...what environment are you having this issue in and what is process.version set to be ?

@ljharb
Copy link
Member

ljharb commented Sep 23, 2025

process.version is always defined in node, and in any correct nodelike environment, including electron and bundlers.

@ljharb ljharb closed this Sep 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants