Missing *.min.js.map files when aggregation is on

Created on 27 December 2021, almost 3 years ago
Updated 2 February 2024, 10 months ago

Hallo, I'm trying to find why Views preview button stopped working and in logs I found some cases of missing js files for anonymous and admin as well

page not found	12/27/2021 - 11:27	/sites/default/files/js/optimized/index.umd.min.js.map	
page not found	12/27/2021 - 11:27	/sites/default/files/js/optimized/jquery.once.min.js.map	
page not found	12/27/2021 - 11:27	/sites/default/files/js/optimized/backbone-min.map	
page not found	12/27/2021 - 11:27	/sites/default/files/js/optimized/once.min.js.map

my question is: could this be a reason? or if not, how to make this work?

Many thanks.

πŸ’¬ Support request
Status

Needs review

Version

4.0

Component

Code

Created by

πŸ‡¨πŸ‡ΏCzech Republic czeky

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.

  • πŸ‡ΊπŸ‡ΈUnited States SocialNicheGuru

    I am getting this in the Chrome dev console and it might just be a development issue vs. regular use issue.

    DevTools failed to load source map: Could not load content for https://mysite/files/css/optimized/admin-toolbar.css.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE

  • πŸ‡«πŸ‡·France nikral

    Hello,
    Same Problem on drupal 9.5.10

    DevTools failed to load source map: Could not load content for http://127.0.0.1/sites/default/files/js/optimized/dialog-min.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
    DevTools failed to load source map: Could not load content for http://127.0.0.1/sites/default/files/js/optimized/index.umd.min.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
    DevTools failed to load source map: Could not load content for http://127.0.0.1/sites/default/files/js/optimized/jquery.form.min.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
    DevTools failed to load source map: Could not load content for http://127.0.0.1/sites/default/files/js/optimized/shepherd.min.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
    DevTools failed to load source map: Could not load content for http://127.0.0.1/sites/default/files/css/optimized/style.css.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
    
  • πŸ‡³πŸ‡±Netherlands MLZR Zutphen

    @savage2003 thanks for your work. I patched the AssetOptimizer.php and the messages do not apper anymore.
    #14 works for me.
    Thanks,
    Marcel

  • πŸ‡¬πŸ‡§United Kingdom joehuggans Harrogate, UK

    #14 worked for me on Drupal 10.2.2 & advagg 6.0.0-alpha1, thanks @savage2003.

Production build 0.71.5 2024