ng-katex 没有正确安装
ng-katex is not being installed properly
我已经按照文档安装了 ng-katex,但是它显示以下错误:-
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>;
~~~~~~~~~~~~~~~~~
从 'ng-katex/lib/ng-katex.module' 而不是 'ng-katex' 导入 KatexModule 时遇到同样的问题。
我已经按照文档安装了 ng-katex,但是它显示以下错误:-
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>;
~~~~~~~~~~~~~~~~~
从 'ng-katex/lib/ng-katex.module' 而不是 'ng-katex' 导入 KatexModule 时遇到同样的问题。