You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
WebpackBundleLookupError: Cannot resolve bundle vendors.
File "django/core/handlers/exception.py", line 34, in inner
response = get_response(request)
File "django/core/handlers/base.py", line 145, in _get_response
response = self.process_exception_by_middleware(e, request)
File "django/core/handlers/base.py", line 143, in _get_response
response = response.render()
File "django/template/response.py", line 106, in render
self.content = self.rendered_content
File "django/template/response.py", line 83, in rendered_content
content = template.render(context, self._request)
File "django/template/backends/django.py", line 61, in render
return self.template.render(context)
File "django/template/base.py", line 171, in render
return self._render(context)
File "django/template/base.py", line 163, in _render
return self.nodelist.render(context)
File "django/template/base.py", line 937, in render
bit = node.render_annotated(context)
File "django/template/base.py", line 904, in render_annotated
return self.render(context)
File "django/template/loader_tags.py", line 150, in render
return compiled_parent._render(context)
File "django/template/base.py", line 163, in _render
return self.nodelist.render(context)
File "django/template/base.py", line 937, in render
bit = node.render_annotated(context)
File "django/template/base.py", line 904, in render_annotated
return self.render(context)
File "django/template/loader_tags.py", line 150, in render
return compiled_parent._render(context)
File "django/template/base.py", line 163, in _render
return self.nodelist.render(context)
File "django/template/base.py", line 937, in render
bit = node.render_annotated(context)
File "django/template/base.py", line 904, in render_annotated
return self.render(context)
File "django/template/library.py", line 192, in render
output = self.func(*resolved_args, **resolved_kwargs)
File "webpack_loader/templatetags/webpack_loader.py", line 12, in render_bundle
tags = utils.get_as_tags(bundle_name, extension=extension, config=config, attrs=attrs)
File "webpack_loader/utils.py", line 45, in get_as_tags
bundle = _get_bundle(bundle_name, extension, config)
File "webpack_loader/utils.py", line 23, in _get_bundle
bundle = get_loader(config).get_bundle(bundle_name)
File "webpack_loader/loader.py", line 83, in get_bundle
raise WebpackBundleLookupError('Cannot resolve bundle {0}.'.format(bundle_name))
The text was updated successfully, but these errors were encountered:
It seems like this affects the kobo-install "staging" setup only. It would also affect "developer mode", but in that case, it's probably safe to assume the developer is using npm run watch or similar to keep the static files up to date.
if [[ !-d"${KPI_SRC_DIR}/staticfiles" ]] ||! python "${KPI_SRC_DIR}/docker/check_kpi_prefix_outdated.py";then
echo'Building static files from live code.'
(cd "${KPI_SRC_DIR}"&& npm run build && python manage.py collectstatic --noinput)
npm run buildinside the Dockerfile is doing its job, but the static files it builds are shadowed when staging mode mounts the source directory inside the containers:
In the case of our staging server, /home/ubuntu/developer-environments/automated-build-workspaces/master/kpi/jsapp/compiled not only didn't have vendors but was actually a dead symlink to /srv/build, which is a relic from an old version of the Dockerfile1fcd297#diff-3254677a7917c6c01f55212f86c57fbfL11
Ultimately, I don't think this will affect anyone except us. I trashed those old symlinks and it's working. We'll see what happens if i change the frontend code and rebuild—will it:
npm run build my new code during the Docker build process
shadow the result of that build by mounting the source directory, which contains outdated compiled JS, inside the container
see that the prefix still matches the compiled JS and do nothing?
When deploying the latest
two-databases
tokf.beta.kbtdev.org
:https://sentry.kbtdev.org/kobo/kpi-backend-dev/issues/307008/
The text was updated successfully, but these errors were encountered: