cdQA-ui
cdQA-ui copied to clipboard
cdQA not working
Here is a screenshot for your reference. I have tried installing vue. However, I havent changed ny code. Please let me know how I can use the ui part along with cdqa as the read me is very open ended.
Hi, If you are having difficulties to understand the readme you can also refer to my blogpost about cdqa:
https://towardsdatascience.com/how-to-create-your-own-question-answering-system-easily-with-python-2ef8abc8eb5
By the end of the article, I teach how to integrate cdqa with the UI.
Hi @vedaanth
You can follow the development steps of the readme to get started:
https://github.com/cdqa-suite/cdQA-ui#development
Please note that you also need to start a cdQA python API in the background:
https://github.com/cdqa-suite/cdQA/blob/master/README.md#manual-1
I did the same, cloned the directory cdQA-ui in the main cdQA. Then went on to run the api.py using flask which was running alongside. However, once I am running the ui file using npm run serve. It just returns :
root@kali:~/Documents/cdQA-master/cdQA-ui# npm run serve
[email protected] serve /root/Documents/cdQA-master/cdQA-ui vue serve ./load-dev-dependencies.js
And then it stops.
I ran the following command : npm install -g @vue/cli-service-global
to ensure everything is installed globally and this is the output:
Hi @vedaanth , what is your environment config?
I just suceeded reproducing the development steps of the readme (https://github.com/cdqa-suite/cdQA-ui#development) on my machine:
npm --version
6.9.0
vue --version
3.7.0
npm list vue
└── [email protected]
node -v
v11.8.0
Hi @fmikaelian , These are my specifications?
root@kali:~# npm list vue /root └── [email protected]
root@kali:~# vue --version @vue/cli 4.0.5 root@kali:~# npm --version 6.12.0 root@kali:~# node -v v12.12.0 root@kali:~#
After running this is the issue thats coming. ERROR Failed to compile with 4 errors 11:17:20 PM
These dependencies were not found:
- core-js/library/fn/array/from in ./node_modules/bootstrap-vue/esm/utils/array.js
- core-js/library/fn/array/is-array in ./node_modules/bootstrap-vue/esm/utils/array.js
- core-js/library/fn/object/assign in ./node_modules/bootstrap-vue/esm/utils/object.js
- core-js/library/fn/object/is in ./node_modules/bootstrap-vue/esm/utils/object.js
To install them, you can run: npm install --save core-js/library/fn/array/from core-js/library/fn/array/is-array core-js/library/fn/object/assign core-js/library/fn/object/is
Hi @vedaanth
I had the same problem for couple of hours today :-)
The problem is vue
version.
I did following:
npm install -g @vue/[email protected]
npm install -g @vue/[email protected]
Example started working.
As of this date, additional steps were required for me as follows -
Updating vue
and vue-template-compiler
versions in package.json
as given in this SOf answer.
And then running npm update vue-template-compiler
(also another answer in the above link's question).
Hope it helps, cheers.