node-libs-browser
node-libs-browser copied to clipboard
Uncaught TypeError: os.homedir is not a function
Do you want to request a feature or report a bug? Bug
What is the current behavior?
After compiling a bundle with deps which use os.homedir function (for example is-reachable) i've got the error in the runtime: Uncaught TypeError: os.homedir is not a function
In the bundle os.homedir is undefined.
What is the expected behavior?
os.homedir shoud be a function
Please update os-browserify package to the latest version (0.3.0) to get support of os.homedir function in bundle.
This issue was moved from webpack/webpack#5512 by @sokra. Orginal issue was by @Deadly0.