D11 Console Errors

Created on 24 May 2025, 2 months ago

Problem/Motivation

Thank you for pushing the update to D11. Unfortunately, there are still some error messages in the console that I have not yet been able to solve with my limited PHP/JS knowledge.

The resource from “https://.../node/modules/contrib/h5p/vendor/h5p/h5p-core/js/jquery.js” was blocked due to a MIME type mismatch (“text/html”) (X-Content-Type-Options: nosniff).

I think the problem is the /node part in the URL

Missing H5PIntegration settings.
https://.../node/modules/contrib/h5p/vendor/h5p/h5p-core/js/jquery.js
NS_ERROR_CORRUPTED_CONTENT

When using the H5P Library Game Map the following error is shown (and the Game Map is not loaded in view mode):

Uncaught TypeError: e.includes is not a function

Steps to reproduce

I have tried it with Drupal version 11.1.7. The installation was new, after a downgrade to Drupal 10 everything works.

Thanks a lot for support!

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇩🇪Germany filburt

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

Comments & Activities

  • Issue created by @filburt
  • 🇺🇸United States ongdesign Portland

    The same issue occurs in Drupal 10.4.x -- it looks to me as though the `jquery.js` include from the module vendor directory is relative to the current path, rather than to webroot. In my case, it's using `learn/reading/modules/contrib/h5p/vendor/h5p/h5p-core/js/jquery.js` rather than `/modules/contrib/h5p/vendor/h5p/h5p-core/js/jquery.js`.

  • 🇬🇧United Kingdom catch

    I'm not able to reproduce this, library definitions always reference the file relative to the module directory, and then library definition building fills in the module path.

    Can you check with and without js aggregation enabled and also paste the actual HTML output of the script tags (for all the js on the site)?

Production build 0.71.5 2024