Hi!
I installed invenioRDM and it works. But some pages are blank like the page for new upload and some buttons like the new upload button. I don’t know what could be causing this.
Hi!
It is most probably a Javascript issue that causes such pages to be blank.
Did you install a new version of InvenioRDM v9? Did you just install invenio-cli
?
There is an ongoing issue that might be causing the issue, see here.
I installed invenioRDM v8.0.
I upgraded to invenioRDM v9 but i have this errors now
Traceback (most recent call last):
File "/home/openmrs/.local/share/virtualenvs/invenio-YWY9aZyz/lib/python3.8/site-packages/flask_webpackext/manifest.py", line 27, in __getitem__
return super(JinjaManifest, self).__getitem__(key)
File "/home/openmrs/.local/share/virtualenvs/invenio-YWY9aZyz/lib/python3.8/site-packages/pywebpack/manifests.py", line 63, in __getitem__
return self._entries[key]
KeyError: 'base-theme-rdm.js'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/openmrs/.local/share/virtualenvs/invenio-YWY9aZyz/lib/python3.8/site-packages/flask/app.py", line 2095, in __call__
return self.wsgi_app(environ, start_response)
File "/home/openmrs/.local/share/virtualenvs/invenio-YWY9aZyz/lib/python3.8/site-packages/werkzeug/middleware/proxy_fix.py", line 187, in __call__
return self.app(environ, start_response)
File "/home/openmrs/.local/share/virtualenvs/invenio-YWY9aZyz/lib/python3.8/site-packages/werkzeug/middleware/dispatcher.py", line 78, in __call__
return app(environ, start_response)
File "/home/openmrs/.local/share/virtualenvs/invenio-YWY9aZyz/lib/python3.8/site-packages/flask/app.py", line 2080, in wsgi_app
response = self.handle_exception(e)
File "/home/openmrs/.local/share/virtualenvs/invenio-YWY9aZyz/lib/python3.8/site-packages/flask/app.py", line 2077, in wsgi_app
response = self.full_dispatch_request()
File "/home/openmrs/.local/share/virtualenvs/invenio-YWY9aZyz/lib/python3.8/site-packages/flask/app.py", line 1525, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/home/openmrs/.local/share/virtualenvs/invenio-YWY9aZyz/lib/python3.8/site-packages/flask/app.py", line 1523, in full_dispatch_request
rv = self.dispatch_request()
File "/home/openmrs/.local/share/virtualenvs/invenio-YWY9aZyz/lib/python3.8/site-packages/flask/app.py", line 1509, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
File "/home/openmrs/.local/share/virtualenvs/invenio-YWY9aZyz/lib/python3.8/site-packages/invenio_app_rdm/theme/views.py", line 63, in index
return render_template(
File "/home/openmrs/.local/share/virtualenvs/invenio-YWY9aZyz/lib/python3.8/site-packages/flask/templating.py", line 148, in render_template
return _render(
File "/home/openmrs/.local/share/virtualenvs/invenio-YWY9aZyz/lib/python3.8/site-packages/flask/templating.py", line 128, in _render
rv = template.render(context)
File "/home/openmrs/.local/share/virtualenvs/invenio-YWY9aZyz/lib/python3.8/site-packages/jinja2/environment.py", line 1301, in render
self.environment.handle_exception()
File "/home/openmrs/.local/share/virtualenvs/invenio-YWY9aZyz/lib/python3.8/site-packages/jinja2/environment.py", line 936, in handle_exception
raise rewrite_traceback_stack(source=source)
File "/home/openmrs/.local/share/virtualenvs/invenio-YWY9aZyz/lib/python3.8/site-packages/invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/frontpage.html", line 9, in top-level template code
{%- extends "invenio_theme/frontpage.html" %}
File "/home/openmrs/.local/share/virtualenvs/invenio-YWY9aZyz/lib/python3.8/site-packages/invenio_theme/templates/semantic-ui/invenio_theme/frontpage.html", line 10, in top-level template code
{%- extends config.BASE_TEMPLATE %}
File "/home/openmrs/.local/share/virtualenvs/invenio-YWY9aZyz/lib/python3.8/site-packages/invenio_theme/templates/semantic-ui/invenio_theme/page.html", line 72, in top-level template code
{%- block body %}
File "/home/openmrs/.local/share/virtualenvs/invenio-YWY9aZyz/lib/python3.8/site-packages/invenio_theme/templates/semantic-ui/invenio_theme/page.html", line 103, in block 'body'
{%- block javascript %}
File "/home/openmrs/.local/share/virtualenvs/invenio-YWY9aZyz/lib/python3.8/site-packages/invenio_theme/templates/semantic-ui/invenio_theme/page.html", line 104, in block 'javascript'
{% include config.THEME_JAVASCRIPT_TEMPLATE %}
File "/home/openmrs/.local/share/virtualenvs/invenio-YWY9aZyz/lib/python3.8/site-packages/invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/javascript.html", line 10, in top-level template code
{{ webpack['base-theme-rdm.js']}}
File "/home/openmrs/.local/share/virtualenvs/invenio-YWY9aZyz/lib/python3.8/site-packages/jinja2/environment.py", line 466, in getitem
return obj[argument]
File "/home/openmrs/.local/share/virtualenvs/invenio-YWY9aZyz/lib/python3.8/site-packages/flask_webpackext/manifest.py", line 29, in __getitem__
raise ManifestKeyNotFoundError('Key {} not found in manifest.json'
flask_webpackext.errors.ManifestKeyNotFoundError: Key base-theme-rdm.js not found in manifest.json
Hello,
which version of Node and NPM are you using? Make sure you are using the versions here.
I was using npm 7, but i installed v6.14.15
I re-read and followed the upgrade instructions, and everything works fine.
Thaks for your help
Great! Thank you for confirming it.