Skip to content
This repository has been archived by the owner on May 10, 2023. It is now read-only.

Bring up the full docker-compose setup #97

Open
cenouralm opened this issue Jan 4, 2021 · 6 comments
Open

Bring up the full docker-compose setup #97

cenouralm opened this issue Jan 4, 2021 · 6 comments

Comments

@cenouralm
Copy link
Contributor

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
Copy link
Member

slint commented Jun 7, 2021

Here's the full output from the command:

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

@noorfathima11
Copy link

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

@noorfathima11
Copy link

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

@MeGolbaz
Copy link

MeGolbaz commented Jul 9, 2021

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

@alejandromumo
Copy link
Member

alejandromumo commented Feb 16, 2022

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

  • Build images using ./docker/build-images.sh
    • Build base image my-site-base
    • Build image my-site from base image
    • When image my-site is being built, it runs the command RUN invenio webpack build, which yields the error mentioned before.

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
Copy link
Member

alejandromumo commented Feb 21, 2022

This issue is meant to be fixed in #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'

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

No branches or pull requests

5 participants