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?

1 Answer 1

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';

Sign up to request clarification or add additional context in comments.

2 Comments

This is does not answer the question. OP wants a custom branch
OP didn't say anything about that, but if that is wanted, found an answer here for installing a package from github (which allows also specifing branches)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.