JS path for internal chart.js NPM library is wrong.

Created on 28 May 2024, 29 days ago

Problem/Motivation

If you have installed chart.js locally via NPM the minified chart JavaScript file in the library is named "chart.umd.js" and not "chart.umd.min.js".
This causes the module to fail to load the chart JavaScript.

Steps to reproduce

Install the chart.js library using NPM...

composer require --prefer-dist npm-asset/chart.js:^4.4  npm-asset/chartjs-adapter-date-fns:^3.0

The charts module charts.js sub-module has more info on how to do this in its readme.

Proposed resolution

Update the "moderation_dashboard.libraries.yml" file with the correct path.

πŸ› Bug report
Status

Active

Version

3.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom arcaic Milton Keynes

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

Merge Requests

Comments & Activities

Production build 0.69.0 2024