• The theme seems to be retaining references to removed .map files, causing 404 errors in use. I get 404 errors in Safari for these URLs on every page load of a WordPress site where this theme is the parent theme:

    /wp-content/themes/wp-bootstrap-starter/inc/assets/css/bootstrap.min.css.map
    /wp-content/themes/wp-bootstrap-starter/inc/assets/js/popper.min.js.map
    /wp-content/themes/wp-bootstrap-starter/inc/assets/js/bootstrap.min.js.map
    

    Updating the non-map versions of those files to remove the references on the last line (e.g. //# sourceMappingURL=...) fixes the issue. Perhaps the intent was for those to be commented out, but I don’t think that syntax was working.

    I believe a similar report was made in https://www.ads-software.com/support/topic/devtools-failed-to-load-sourcemap-11/

    Could you take a look? Thanks.

    • This topic was modified 3 years, 7 months ago by Chris Hardie.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Theme Author Afterimage Designs

    (@afterimagedesigns)

    Hi @chrishardie,

    As you can see on the similar report, WordPress Themes must not have .map files which fails the test for Theme Check and must strictly remove from the theme https://prnt.sc/10db3f8. You could switch and try use the CDN assets on Theme Customizer and see if fixes the issue on your end.

    Regards,
    Afterimage Designs

    Thread Starter Chris Hardie

    (@chrishardie)

    Hi @afterimagedesigns – to clarify, my suggestion is not to add .map files to the theme, it’s to remove the references to those .map files from within the theme so that browsers don’t attempt to the .map files at all.

    Theme Author Afterimage Designs

    (@afterimagedesigns)

    Hi @chrishardie,

    Apologies for that! I’ll take note of this and add these changes on future release.

    Regards,
    Afterimage Designs

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘CSS and JS map files not found’ is closed to new replies.