django-cms / djangocms-frontend

django CMS frontend is a plugin bundle for django CMS providing several components for the frontend, currently implemented with the popular Bootstrap 5 framework.
Other
43 stars 20 forks source link

Missing `bundle.utilities.js` #52

Closed greyhare closed 1 year ago

greyhare commented 1 year ago

Describe the bug djangocms-frontend JS code is trying to load {% static 'djangocms_frontend/js/bundle.utilities.js' %}, but there is no such file in djangocms-frontend. There was such a file in djangocms-bootstrap4 at static/djangocms_bootstrap4/js/bundle.utilities.js.

To Reproduce Steps to reproduce the behavior:

  1. Be editing a Django CMS page. Have the JS console open.
  2. Sometimes the console says Failed to load resource or similar for this file.

Expected behavior No errors.

Desktop (please complete the following information):

Additional context These templates attempt to load the missing JS module:

fsbraun commented 1 year ago

@greyhare Thanks for reporting this!

It is actually not a missing file but a superfluous inclusion of a static file. The functionality of the bundle.utilities.js has moved to css.

I will create a PR to fix this.

fsbraun commented 1 year ago

Solved with #53 .

A tar ball is available here: https://github.com/fsbraun/djangocms-frontend/archive/refs/heads/fix/accordion.zip