inveniosoftware / training

Invenio v3 Training Material
https://training.readthedocs.io
MIT License
39 stars 45 forks source link

Bring up the full docker-compose setup #97

Open cenouralm opened 3 years ago

cenouralm commented 3 years ago

When running ./docker/build-images.sh it shows ```#8 220.3 ERROR in ./js/invenio_theme/templates.js

8 220.3 Module not found: Error: Can't resolve '@templates' in '/opt/invenio/var/instance/assets/js/invenio_theme'```

slint commented 3 years ago

Here's the full output from the command:

https://gist.github.com/slint/5acee8c9e4e493ab13c5d1dc0356cb0b

noorfathima11 commented 3 years ago

@slint https://gist.github.com/slint/5acee8c9e4e493ab13c5d1dc0356cb0b#gistcomment-3805977

noorfathima11 commented 3 years ago

@asenna2 were you able to find a work around for this issue?

MeGolbaz commented 3 years ago

@asenna2 I have the same issue, could you tell me how you solved it?

alejandromumo commented 2 years ago

The follow ups listed above mention another issue, which is related to python version being incompatible with dependency kombu, which specifically requires python 3.8. Locally I managed to fix it using image centos8-python:3.8 obtained from invenio docker repository. Needs further testing though.

I came across the error mentioned in the original comment.

How to reproduce

Exception traceback

ERROR in ./js/invenio_theme/templates.js
Module not found: Error: Can't resolve '@templates' in '/opt/invenio/var/instance/assets/js/invenio_theme'
@ ./js/invenio_theme/templates.js 26:19-28:47
@ ./js/invenio_search_ui/util.js
@ ./js/invenio_search_ui/app.js
alejandromumo commented 2 years ago

This issue is meant to be fixed in https://github.com/inveniosoftware/training/pull/115

This issue happens when using the script start-from.sh in some sections of the training. Some of these sections contain a folder called solution and its contents eventually are copied to invenio's instance folder. As it happens, some config.py from these solution folders are faulty, creating the error Error: Can't resolve '@templates'