我在我的终端中收到了以下警告。我该如何解决这个问题呢?(删除警告)
Warning: C:\Users\Sharon\Documents\MyProject\PROJECTOne\node_modules\@azure\core-tracing\dist-esm\src\interfaces.js depends on '@opentelemetry/api'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies
发布于 2021-07-08 06:05:58
这是一个已知的问题,旧版本的@opentelemetry/api不支持ESM。https://github.com/Azure/azure-sdk-for-js/issues/11550。一旦@azure/storage-blob发布了包含修复的新版本,该警告就会消失。
发布于 2021-10-03 17:58:46
您可以删除CommonJS或AMD依赖项可能导致优化紧急情况.通过将以下代码片段添加到angular.json的build部分
"allowedCommonJsDependencies": [
"opentelemetry",
]
如果不起作用,请回复我
https://stackoverflow.com/questions/68292037
复制相似问题