Missing library asset/typo

Created on 9 July 2024, 5 months ago

Problem/Motivation

After installing the module, I got the following error:

Or, in plain text:

Warning: file_get_contents(modules/contrib/prismjs/js/prism-custom.js): Failed to open stream: No such file or directory in Drupal\Core\Asset\JsOptimizer->optimize() (line 39 of core/lib/Drupal/Core/Asset/JsOptimizer.php).

Steps to reproduce

Install the module with composer require drupal/prismjs and enable the module.

Proposed resolution

After looking into the codebase, this seems to be a typo. All the asset files described in the libraries.yml file are present except the js/prism-custom.js file. I think this should instead reference the js/prismjs-custom.js file which is present - ie, this is a small typo.

Remaining tasks

Produce an MR to address the typo.

🐛 Bug report
Status

RTBC

Version

1.1

Component

Code

Created by

🇵🇹Portugal joum Porto

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024