在运行安装在 Angular 14 中的 [deepstream.io-client-js][1] 项目时,出现以下错误。[1]:https://www.npmjs.com/package/deepstream.io-client-js
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: { "url": require.resolve("url/") }'
- install 'url'
If you don't want to include a polyfill, you can use an empty module like this:
resolve.fallback: { "url": …Run Code Online (Sandbox Code Playgroud)