Closed gwmccull closed 7 years ago
is process.verison missing or process itself ?
process and process.ENV are defined but not process.version
I found out that you can polyfill process.version
by creating a globals file and specifying the missing process
properties there. That's probably the best way to go rather than try to "fix" all of the Node libraries
@gwmccull How to create global file?
@kishanjvaghela I think I did something like this: https://stackoverflow.com/a/42149659
I'm no longer on that project but those steps should get you close
Thanks a lot
It appears that not all environments that are using this library pass a
process.version
.Some of the libraries that I use in React Native are using this library at run-time and are not passing a version. Since version is undefined, the slice method fails.