3

I installed react-awesome-query-builder from branch antd-3 but after import on react file, there is an error that says:

import {Query, Builder, Utils as QbUtils} from 'react-awesome-query-builder';

Error :

Failed to compile ./src/shared/queryBuilder/QueryBuilder.js

Module not found: Can't resolve 'react-awesome-query-builder' in 'D:\manshoor_ui\src\shared\queryBuilder'

This module is added to package.json and node_modules but there is this error. I installed by this command:

npm install --save ukrbublik/react-awesome-query-builder#antd-3

So what might be wrong here?

Community
  • 1
  • 1
Mohamad Atef
  • 31
  • 1
  • 2

1 Answers1

0

According to github docs documentation for that package, it's supposed to be installed like this:

npm i react-awesome-query-builder

And then you import it like this:

import {Query, Builder, Utils} from 'react-awesome-query-builder';

Jezpoz
  • 179
  • 1
  • 7
  • This is does not answer the question. OP wants a __custom branch__ – molamk Feb 20 '19 at 09:24
  • OP didn't say anything about that, but if that is wanted, found an answer [here](https://stackoverflow.com/a/39732501/4083414) for installing a package from github (which allows also specifing branches) – Jezpoz Feb 25 '19 at 12:10