错误TS2304:找不到名称' inputevent'角?

发布于 2025-01-18 00:38:06 字数 1731 浏览 1 评论 0原文

我在节点版本 13.14.0 中使用 anuglar/[email protected]我尝试构建,但遇到了这些错误,我陷入困境,请任何人帮助我解决它。

    only.directive.d.ts(19,22): error TS2304: Cannot find name 'InputEvent'.
node_modules/angular-ng-autocomplete/lib/autocomplete-lib.module.d.ts(7,21): error TS2694: Namespace '"node_modules/@angular/core/core"' has no exported member 'ɵɵFactoryDeclaration'.
node_modules/angular-ng-autocomplete/lib/autocomplete-lib.module.d.ts(8,21): error TS2694: Namespace '"node_modules/@angular/core/core"' has no exported member 'ɵɵNgModuleDeclaration'.
node_modules/angular-ng-autocomplete/lib/autocomplete-lib.module.d.ts(9,21): error TS2694: Namespace '"/node_modules/@angular/core/core"' has no exported member 'ɵɵInjectorDeclaration'.
node_modules/angular-ng-autocomplete/lib/autocomplete.component.d.ts(243,21): error TS2694: Namespace '"/node_modules/@angular/core/core"' has no exported member 'ɵɵFactoryDeclaration'.
node_modules/angular-ng-autocomplete/lib/autocomplete.component.d.ts(244,21): error TS2694: Namespace '"node_modules/@angular/core/core"' has no exported member 'ɵɵComponentDeclaration'.
node_modules/angular-ng-autocomplete/lib/highlight.pipe.d.ts(5,21): error TS2694: Namespace '"node_modules/@angular/core/core"' has no exported member 'ɵɵFactoryDeclaration'.
node_modules/angular-ng-autocomplete/lib/highlight.pipe.d.ts(6,22): error TS2694: Namespace '"node_modules/@angular/core/core"' has no exported member 'ɵɵPipeDeclaration'.

有两种类型的错误

,这是它的屏幕截图 输入图片此处描述

I have using anuglar/[email protected] with node version 13.14.0 when I try to build I got these error I'm stuck please any body help me with it.

    only.directive.d.ts(19,22): error TS2304: Cannot find name 'InputEvent'.
node_modules/angular-ng-autocomplete/lib/autocomplete-lib.module.d.ts(7,21): error TS2694: Namespace '"node_modules/@angular/core/core"' has no exported member 'ɵɵFactoryDeclaration'.
node_modules/angular-ng-autocomplete/lib/autocomplete-lib.module.d.ts(8,21): error TS2694: Namespace '"node_modules/@angular/core/core"' has no exported member 'ɵɵNgModuleDeclaration'.
node_modules/angular-ng-autocomplete/lib/autocomplete-lib.module.d.ts(9,21): error TS2694: Namespace '"/node_modules/@angular/core/core"' has no exported member 'ɵɵInjectorDeclaration'.
node_modules/angular-ng-autocomplete/lib/autocomplete.component.d.ts(243,21): error TS2694: Namespace '"/node_modules/@angular/core/core"' has no exported member 'ɵɵFactoryDeclaration'.
node_modules/angular-ng-autocomplete/lib/autocomplete.component.d.ts(244,21): error TS2694: Namespace '"node_modules/@angular/core/core"' has no exported member 'ɵɵComponentDeclaration'.
node_modules/angular-ng-autocomplete/lib/highlight.pipe.d.ts(5,21): error TS2694: Namespace '"node_modules/@angular/core/core"' has no exported member 'ɵɵFactoryDeclaration'.
node_modules/angular-ng-autocomplete/lib/highlight.pipe.d.ts(6,22): error TS2694: Namespace '"node_modules/@angular/core/core"' has no exported member 'ɵɵPipeDeclaration'.

there are two type of errors

here is screenshot for it
enter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文