我从分支@model System.Exception
安装了react-awesome-query-builder,但是在react文件上导入后,出现错误消息:
从“ react-awesome-query-builder”导入{Query,Builder,Utils as QbUtils};
错误:
无法编译./src/shared/queryBuilder/QueryBuilder.js
未找到模块:无法在'D:\ manshoor_ui \ src \ shared \ queryBuilder'中解析'react-awesome-query-builder'
此模块已添加到return View("Error", ex);
和antd-3
中,但是存在此错误。我是通过以下命令安装的:
package.json
那么这里可能出什么问题了?
答案 0 :(得分:0)
根据该软件包的github docs文档,应该这样安装:
npm i react-awesome-query-builder
然后按如下所示导入它:
import {Query, Builder, Utils} from 'react-awesome-query-builder';