Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cdQA not working #14

Open
ghost opened this issue Oct 19, 2019 · 8 comments
Open

cdQA not working #14

ghost opened this issue Oct 19, 2019 · 8 comments

Comments

@ghost
Copy link

ghost commented Oct 19, 2019

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.

Screenshot from 2019-10-19 16-01-40

@andrelmfarias
Copy link
Collaborator

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.

@fmikaelian
Copy link
Collaborator

fmikaelian commented Oct 21, 2019

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

@ghost
Copy link
Author

ghost commented Oct 21, 2019

Screenshot from 2019-10-22 06-33-32
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

cdqa-ui@1.0.8 serve /root/Documents/cdQA-master/cdQA-ui
vue serve ./load-dev-dependencies.js

And then it stops.

@ghost
Copy link
Author

ghost commented Oct 21, 2019

I ran the following command : npm install -g @vue/cli-service-global
to ensure everything is installed globally and this is the output:
Screenshot from 2019-10-22 06-57-04

@fmikaelian
Copy link
Collaborator

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
└── vue@2.6.10

node -v
v11.8.0

@ghost
Copy link
Author

ghost commented Nov 16, 2019

Hi @fmikaelian , These are my specifications?
Screenshot from 2019-11-16 23-10-10

root@kali:~# npm list vue
/root
└── vue@2.6.10

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

@IzidoroBaltazar
Copy link

Hi @vedaanth
I had the same problem for couple of hours today :-)
The problem is vue version.
I did following:

npm install -g @vue/cli-service-global@3.7.0
npm install -g @vue/cli@3.7.0

Example started working.

@rajdeep-biswas
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants