JSON Editor theme assets do not load on Drupal 10.1

Created on 16 August 2023, over 1 year ago
Updated 25 September 2023, about 1 year ago

Problem/Motivation

On Drupal 10.1, the JSON Editor theme assets do not load, which makes the editor window un-styled.

I believe this is happening because of recent changes to CSS/JS loading, which landed in Drupal 10.1 (see change records CSS and JavaScript aggregation performance improvements and Asset aggregation deprecations and additions, hook_js_alter()/hook_css_alter() changes ).

Also, if you use stage_file_proxy module, you will need to update to at least 2.1.1, to include the fix from 🐛 Stage file proxy attempts to fetch aggregated JS/CSS. Fixed .

Steps to reproduce

  • drush si demo_umami -y
  • drush en patternkit_example -y
  • drush uli
  • Go to /admin/content
  • Navigate to an article content item
  • Click Layout tab to edit the item's layout
  • Add a [Patternkit] Example block to the layout
  • Observe that the pattern editor section is un-styled. You should also see a 404 response for the jSON Editor theme's CSS file(s).

Proposed resolution

Update Patternkit's CSS/JS asset handling to be compatible with Drupal 10.1.

Remaining tasks

  • Test all JSON Editor themes bundled with Patternkit
  • Determine whether to make this change work only for 10.1 or keep support for 9 and 10.0.

User interface changes

N/A

API changes

N/A

Data model changes

N/A

🐛 Bug report
Status

Fixed

Version

9.1

Component

Schema Editor

Created by

🇺🇸United States krisahil

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024