You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
* Fixed#4564 by checking process type
Fixed#4564 to eliminate typing issue
* - Removed the `indexBrowser` implementation since the typechecking handles it much more simply
Prerequisites
What theme are you using?
other
Version
6
Current Behavior
process
is referenced in potential browser code:react-jsonschema-form/packages/utils/src/getTestIds.ts
Line 30 in 91ac453
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
Environment
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.The text was updated successfully, but these errors were encountered: