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
node-ip code uses os-browserify, and since it's brought as a dependency bundling fails with:
ERROR in ./node_modules/ip/lib/ip.js 3:11-24
Module not found: Error: Can't resolve 'os' in '/home/kkoukiou/repos/cockpit-machines/node_modules/ip/lib'
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
- add a fallback 'resolve.fallback: { "os": require.resolve("os-browserify/browser") }'
- install 'os-browserify'
If you don't want to include a polyfill, you can use an empty module like this:
resolve.fallback: { "os": false }
webpack compiled with 1 error
The workaround is fine, but would be nice that this would be solved on this module directly.
The text was updated successfully, but these errors were encountered:
Webpack 5 doesn't include polyfills for node.js
node-ip code uses os-browserify, and since it's brought as a dependency bundling fails with:
The workaround is fine, but would be nice that this would be solved on this module directly.
The text was updated successfully, but these errors were encountered: