首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >ng-katex未正确安装

ng-katex未正确安装
EN

Stack Overflow用户
提问于 2020-10-12 16:46:21
回答 1查看 77关注 0票数 0

我已经按照文档安装了ng-katex,但它显示以下错误:-

代码语言:javascript
复制
ERROR in node_modules/ng-katex/lib/ng-katex.component.d.ts:9:28 - error TS2314: Generic type 'ɵɵComponentDefWithMeta' requires 7 type argument(s).

9     static ngComponentDef: ɵngcc0.ɵɵComponentDefWithMeta<KatexComponent, "ng-katex", never, 
{ 'equation': "equation", 'options': "options" }, { 'onError': "onError" }, never>;
                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/ng-katex/lib/ng-katex-paragraph.component.d.ts:6:28 - error TS2314: Generic type 
'ɵɵComponentDefWithMeta' requires 7 type argument(s).

6     static ngComponentDef: ɵngcc0.ɵɵComponentDefWithMeta<KatexParagraphComponent, "ng-katex-paragraph", never, { 'paragraph': "paragraph" }, {}, never>;
                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/ng-katex/lib/ng-katex-html.component.d.ts:12:28 - error TS2314: Generic type 'ɵɵComponentDefWithMeta' requires 7 type argument(s).

12     static ngComponentDef: ɵngcc0.ɵɵComponentDefWithMeta<KatexHtmlComponent, "ng-katex-html", never, { 'html': "html" }, {}, never>;
                              ~~~~~~~~~~~~~~~~~
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2020-10-29 14:49:07

从'ng-katex/lib/ng-katex.module‘而不是'ng-katex’导入KatexModule时也有同样的问题。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/64314484

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档