Googleapis giving error with polyfills

I have a project that was running smooth and clean, then when I added Googleapis library I got several errors like this:

Error: Module not found: Error: Can’t resolve ‘http’

[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] If you want to include a polyfill, you need to:

[ng] - add a fallback ‘resolve.fallback: { “http”: require.resolve(“stream-http”) }’

[ng] - install ‘stream-http’

[ng] If you don’t want to include a polyfill, you can use an empty module like this:

[ng] resolve.fallback: { “http”: false }