Javascript 升级ngx translate后声明的符号TranslateDirective中出错
在我的Angular 10项目中,我使用的是Javascript 升级ngx translate后声明的符号TranslateDirective中出错,javascript,angular,typescript,ngx-translate,Javascript,Angular,Typescript,Ngx Translate,在我的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
@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解决了这个问题