引入import GGEditor from 'gg-editor';报错 ./node_modules/_gg-editor@3.0.0-beta.0@gg-editor/src/components/GGEditor/index.tsx Module parse failed: The keyword 'interface' is reserved (12:0) You may need an appropriate loader to handle this file type. | import EditorPrivateContext, { EditorPrivateContextProps } from '../../common/context/EditorPrivateContext'; | | interface GGEditorProps { | [EditorEvent.onBeforeExecuteCommand]?: EventHandle<CommandEvent>; | [EditorEvent.onAfterExecuteCommand]?: EventHandle<CommandEvent>; 能帮我看一下怎么解决吗?
Leo Wang
@leowang199303
不知道 gg-editor...
leah
@dundishi
那有自定义过拓扑编辑器吗?
有大佬做过拓扑流程图吗
leah
@dundishi
有人下载区块的时候碰到这样的吗 sudo umi block add EditorKoni --path=your/path/here Password: ✔ 😁 Parse url and args ✔ 🚒 Git fetch ✔ 🚛 Git checkout master ✔ 🚀 Git pull ✔ 👀 update submodule ✖ error AssertionError [ERR_ASSERTION]: /Users/xs01/.umi/blocks/github.com/umijs/umi-blocks/EditorKoni don't exists at /usr/local/share/.config/yarn/global/node_modules/umi-build-dev/lib/plugins/commands/block/index.js:165:27 at Generator.next (<anonymous>) at asyncGeneratorStep (/usr/local/share/.config/yarn/global/node_modules/umi-build-dev/lib/plugins/commands/block/index.js:46:103) at _next (/usr/local/share/.config/yarn/global/node_modules/umi-build-dev/lib/plugins/commands/block/index.js:48:194) at process._tickCallback (internal/process/next_tick.js:68:7)
Warning: componentWillMount is deprecated and will be removed in the next major version. Use componentDidMount instead. As a temporary workaround, you can rename to UNSAFE_componentWillMount.