升级ngx-translate后声明的Symbol TranslateDirective错误

问题描述

在Angular 10项目中,我使用的是@ngx-translate/core": "^11.0.1,但是升级"@ngx-translate/core": "^13.0.0"之后,出现以下错误

ERROR in Symbol TranslateDirective declared in /Users/a1410978/Desktop/ssr-workspace/asfc-shell/node_modules/@aviato/components/node_modules/@ngx-translate/core/lib/translate.directive.d.ts is not exported from @ngx-translate/core (import into /Users/a1410978/Desktop/ssr-workspace/asfc-shell/projects/asfc-web/src/app/shell/shell.component.ts)

我在项目中搜索TranslateDirective,却一无所获。

可能是什么问题?请引导我

解决方法

"@ngx-translate/core": ["node_modules/@ngx-translate/core"]添加到tscongig.json中解决了该问题