Libraries.yml looks in wrong folder for Tippy.js

Created on 6 January 2023, over 1 year ago
Updated 18 September 2023, 10 months ago

Problem/Motivation

webform.libraries.yml

cdn:
    /libraries/tippyjs/dist/: https://unpkg.com/tippy.js@6.2.6/dist/
  js:
    /libraries/tippyjs/dist/tippy-bundle.umd.js: { }

However, the library actually gets installed into libraries/tippyjs/6.x/, and it's tippy-bundle.umd.min.js, not tippy-bundle.umd.js

Steps to reproduce

When I go to add an element to a new webform, such an Entity Select, I see this in the browser console:

Refused to execute script from 'https://example.ddev.site/libraries/tippyjs/dist/tippy-bundle.umd.js?v=6...' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.

Looking at the sources tab, or the project directory, shows that the file is located at <code>libraries/tippyjs/6.x/tippy-bundle.umd.min.js

I installed the libraries by including the libraries composer file.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Fixed

Version

6.2

Component

Code

Created by

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024