node-libs-browser icon indicating copy to clipboard operation
node-libs-browser copied to clipboard

Uncaught TypeError: os.homedir is not a function

Open webpack-bot opened this issue 8 years ago • 0 comments

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.

webpack-bot avatar Aug 14 '17 16:08 webpack-bot