-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Closed
Labels
Description
Prerequisites
- I have searched the existing issues
- I understand that providing a SSCCE example is tremendously useful to the maintainers.
- I have read the documentation
- Ideally, I'm providing a sample JSFiddle, Codesandbox.io or preferably a shared playground link demonstrating the issue.
What theme are you using?
other
Version
6
Current Behavior
process
is referenced in potential browser code:
if (get(process, 'env.NODE_ENV') !== 'test') { |
This leads to a javascript exception process is not defined
Expected Behavior
Properly detect whether process
is defined or not. Just referencing it may throw an error in browser environments.
Steps To Reproduce
- Include an alpha build in your project
- Attempt to use rjsf Form's
Environment
- OS: ArchLinux
- Node: 23
- npm: 11.3.0
Anything else?
My suggestion would be to wrap this in a typeof(process) !== "undefined"
check, in which case the variable not being defined doesn't lead to an exception.