【问题标题】:Error: '--allowJs' is not set while including custom CKEditor 5 build in Angular 5 project错误:在 Angular 5 项目中包含自定义 CKEditor 5 构建时未设置“--allowJs”
【发布时间】:2019-05-12 10:32:09
【问题描述】:

我创建了一个自定义 CKEditor 构建,包括 ckeditor5-simple-upload。现在,当我将自定义构建包含在我的组件中时:

import * as ClassicEditor from '../../ckeditor.js';

我得到错误 -

ERROR in src/app/core/foo-bar/foo-bar.component.ts(4,32): error TS6143: Module '../../ckeditor.js' was resolved to 'D:/my-project/src/app/ckeditor.js', but '--allowJs' is not set.

我在 tsconfig.app.json 中尝试了allowJS: true,但没有帮助。

【问题讨论】:

    标签: angular typescript angular-cli ckeditor5


    【解决方案1】:

    是不是打错字了?

    应该是allowJs: true。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2018-08-08
      • 2019-03-21
      • 1970-01-01
      • 2021-04-04
      • 1970-01-01
      • 1970-01-01
      • 2022-09-23
      相关资源
      最近更新 更多