小编Pra*_*ngh的帖子

找不到模块:错误:无法解析 webpack 5/Angular 14 中的“url”

在运行安装在 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)

angular angular14

9
推荐指数
1
解决办法
2万
查看次数

标签 统计

angular ×1

angular14 ×1