【问题标题】:ERROR in ../node_modules/ng2-ckeditor/ckbutton. directive.d.TS: 1:23 - error TS2688: Cannot find type definition file for 'ckeditor'../node_modules/ng2-ckeditor/ckbutton 中的错误。 directive.d.TS: 1:23 - 错误 TS2688: 找不到“ckeditor”的类型定义文件
【发布时间】:2021-09-14 21:36:15
【问题描述】:

在 Angular 项目中,我收到了这个错误消息( ../node_modules/ng2-ckeditor/ckbutton.directive.d.TS 中的错误:1:23 - 错误 TS2688:找不到“ckeditor”的类型定义文件。 ) 这个错误消息的原因是什么?

【问题讨论】:

    标签: node.js angular ckeditor node-modules


    【解决方案1】:

    原因是你的项目中没有安装@tyes/ckeditor 包。

    安装这个包应该可以解决这个错误。 如果仍然存在,请告诉我。

    【讨论】:

    • 现在我已经安装了@type/CKEditor,最大错误已经修复,但现在我得到了这个错误: ../node_modules/ng2-ckeditor/ckeditor.component.d.ts:36 中的错误: 9 - 错误 TS1086:无法在环境上下文中声明访问器。 36 获取值():字符串; ~~~~~ ../node_modules/ng2-ckeditor/ckeditor.component.d.ts:37:9 - 错误 TS1086:无法在环境上下文中声明访问器。 37 设定值(v: 字符串);
    猜你喜欢
    • 1970-01-01
    • 2019-05-11
    • 2019-07-10
    • 2021-05-14
    • 1970-01-01
    • 2022-10-20
    • 2018-07-23
    • 2018-02-24
    • 2018-03-09
    相关资源
    最近更新 更多