【发布时间】:2019-09-12 10:22:31
【问题描述】:
我正在尝试通过以下链接实现 Angular HTML 编辑器:https://www.jqwidgets.com/angular/angular-editor/angular-editor-defaultfunctionality.htm
但我遇到了错误:
import * as jqxEditorModule from 'jqwidgets-ng/jqxeditor'
这里是代码和错误的参考截图:
我已经下载了jqwidgets,也粘贴了nodemodules。
我还运行了以下命令进行安装:
npm install jqwidgets-scripts --save
npm info jqwidgets-framework
但我仍然遇到错误。
【问题讨论】:
-
你试过 import * as jqxEditorModule from 'jqwidgets-ng/jqxeditor'
-
在您的代码中,您还漏掉了 .. FROM .. 这个词,所以也试试 import {jqxEditorModule} from 'jqwidgets-ng/jqxeditor'
-
from 关键字也被改成 import * as jqxEditorModule from 'jqwidgets-ng/jqxeditor'
-
我附上了错误图片,请建议
-
尝试使用 import {jqxEditorModule} from 'jqwidgets-ng'
标签: jquery angular import html-editor jqwidget