问题描述
很抱歉,如果您已经掌握这些知识,那么我将很难找到合适的资源,因此将不胜感激。
我有一个使用react.js制作的现有网页,并且我想使用ant-pro中的组件。我已经使用过来自ant的以前的组件,但是我通过导入来做到了。该组件似乎只是ant-pro的一部分。链接在下面。
https://preview.pro.ant.design/editor/flow
我已经尝试通过将以下流程中的帮助复制到流模块中来使用以下帮助,但我只是得到了错误
How to use ant-design-pro components in ant-design react app?
Module parse failed: Unexpected token (15:2)
You may need an appropriate loader to handle this file type,currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| GGEditor.setTrackable(false);
| export default () => (
> <PageHeaderWrapper
| content={formatMessage({
| id: 'editorandflow.description','.
我的项目也不使用蚂蚁设计架构。
我更改的唯一另一件事是导入
import Flow from 'ant-design-pro/lib/flow';
谢谢!
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)