我不知道从哪里开始修复这个错误。输出并没有真正告诉我很多信息,只是听起来“@azure/ai-text-analytics”安装有问题。我已经npm uninstall
安装了两次并重新安装了两次。它给出了同样的错误,所以我猜它不是安装?
我得到的完整错误:
node_modules/@azure/core-http/types/latest/src/createSpanLegacy.d.ts:1:10 - error TS2459: Module '"@azure/core-tracing"' declares 'Span' locally, but it is not exported.
1 import { Span } from "@azure/core-tracing";
~~~~
node_modules/@azure/core-tracing/types/core-tracing.d.ts:6:10
6 import { Span } from '@opentelemetry/api';
~~~~
'Span' is declared here.
node_modules/@azure/core-http/types/latest/src/webResource.d.ts:9:23 - error TS2305: Module '"@azure/core-tracing"' has no exported member 'Context'.
9 import { SpanOptions, Context } from "@azure/core-tracing";
~~~~~~~
Found 2 errors.
显然,这些文件都不是我自己的代码,所以我没有其他任何东西可以展示我能想到的。