Closed Marius-Romanus closed 1 year ago
Hello, it seems that it is still happening in version 2.4.1 but in another line, I think that isNode() is not doing its job well. Same is better to know if you have "window" object for browsers and "global" for node? Although this could change in the future. Or does the same thing have to do with it not being compiled? I am testing it in an Angular development project.
Regards.
[ng] ./node_modules/object-sizeof/indexv2.js:68:21-36 - Error: Module not found: Error: Can't resolve 'util' in 'DIR\node_modules\object-sizeof' [ng] [ng] BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default. [ng] This is no longer the case. Verify if you need this module and configure a polyfill for it. [ng] [ng] If you want to include a polyfill, you need to: [ng] - add a fallback 'resolve.fallback: { "util": require.resolve("util/") }' [ng] - install 'util' [ng] If you don't want to include a polyfill, you can use an empty module like this: [ng] resolve.fallback: { "util": false } [ng] [ng] [ng] × Failed to compile.
Hello, in version 2.4.0 it gives me the following error:
[ng] ./node_modules/object-sizeof/indexv2.js:5:13-28 - Error: Module not found: Error: Can't resolve 'util' in 'DIR\node_modules\object-sizeof' [ng] [ng] BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default. [ng] This is no longer the case. Verify if you need this module and configure a polyfill for it. [ng] [ng] If you want to include a polyfill, you need to: [ng] - add a fallback 'resolve.fallback: { "util": require.resolve("util/") }' [ng] - install 'util' [ng] If you don't want to include a polyfill, you can use an empty module like this: [ng] resolve.fallback: { "util": false } [ng] [ng] [ng] × Failed to compile.
In version 2.3.0 it seems to work fine.
greetings, thank you!