css/js .map files are missing

Created on 28 September 2023, about 1 year ago
Updated 29 March 2024, 8 months ago

Problem/Motivation

After the install of the module, some messages are rising in the log, all of them related with missing .map files.

Steps to reproduce

  • Install the module version 2.x
  • Enable the module
  • Create a new Mega Menu using the documented documentation
  • Goes to a page with the menu already created
  • Check the log with drush ws or via interface

Proposed resolution

Add the .map files missed.

๐Ÿ› Bug report
Status

Closed: cannot reproduce

Version

2.0

Component

Code

Created by

๐Ÿ‡ง๐Ÿ‡ชBelgium pmichelazzo Brussels

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

Comments & Activities

  • Issue created by @pmichelazzo
  • ๐Ÿ‡ฆ๐Ÿ‡นAustria maxilein

    This also applies to 3.0.0-alpha2.

    page not found
    /modules/contrib/tb_megamenu/dist/base.css.map
    page not found
    /modules/contrib/tb_megamenu/dist/styles.css.map

    At first I thought the warnings and missing styles are BigPipe-related.
    When I rolled the css files back to an older version everything is fine.
    So I think it may be file format related?

  • ๐Ÿ‡ง๐Ÿ‡ชBelgium pmichelazzo Brussels

    Hi maxilein,

    Probably yes, I made the same like you did and it works but I'm not sure if it's possible to use the old versions with the new ones.

    Somebody could confirm it?

  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia ravi kant Jaipur

    I did not find the error. checking with version tb_megamenu:^3.0@alpha.

  • ๐Ÿ‡ฆ๐Ÿ‡นAustria maxilein

    The problem came with the 3.x-dev@dev for me.
    At least my composer says that that is the version required. And interestingly Drupal says it is 3.0.0-alpha2.
    It is running on ubuntu 22.04

    Something is off here. Let's do it systematically:

    composer remove drupal/tb_megamenu says:
    -> Removing drupal/tb_megamenu (dev-3.x 0482bb9)

    So maybe the dev version does not have a proper labeling?

    composer require 'drupal/tb_megamenu:3.x-dev@dev'
    -> Installing drupal/tb_megamenu (dev-3.x 0482bb9)

    Now we definetely have the latest dev acording to composer.

    The firefox console give the following new error :
    The resource from โ€œ....d485220b0.css?s23iqyโ€ was blocked due to MIME type (โ€œtext/htmlโ€) mismatch (X-Content-Type-Options: nosniff).
    - my bad that was a file permission while upgrading.

    drush cr done.
    Still: extend page shows it is 3.0.0-alpha2. So the versioning of the dev is definetely wrong.

    So let's do it again but also delete the folder to be sure. versioning is still alpha! So that is an error in the dev version.

    And the rest I cannot confirm anymore. But it seems that Asset injector takes more time since one of the latest upgrades and has a different behavour.

    Diagnose on my part: it seems to be an asset injector / cache clear/reload issue.

    Very sorry to have bothered you.

  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia ravi kant Jaipur

    I just try again as described with version "drupal/tb_megamenu": "3.x-dev@dev",
    But did not getting error in console. Attaching screenshot for confirmation.
    Checking on MAC OS and FF version is 118.0.1 (64-bit).

  • ๐Ÿ‡บ๐Ÿ‡ธUnited States dasginganinja Bethlehem, PA

    Add .map files to your fast404 exclude list so Drupal stops rendering a full 404.

  • I use version 3 of this module and that error appears if I deactivate the following options in performance:

    - Aggregate CSS files
    - Aggregate JavaScript files

  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia ravi kant Jaipur

    Not getting error, checking in -
    1. Drupal 10.2.0
    2. tb_megamenu:^3.0@alpha

  • Status changed to Closed: cannot reproduce 8 months ago
  • ๐Ÿ‡บ๐Ÿ‡ธUnited States themodularlab
Production build 0.71.5 2024