Intermittent 404 error: ultimate-addons-for-gutenberg/dist/index.js.map
-
I was debugging an issue for a client when I noticed that occasionally this plugin was looking for a file that does not exist:
wp-content/plugins/ultimate-addons-for-gutenberg/dist/index.js.map
It was throwing a 404 error in Dev Tools. I grabbed a fresh copy of the plugin and looked, and it definitely does not exist, but it is being referenced here:
$ grep -Irn "index\.js\.map" * dist/blocks.build.js:106756://# sourceMappingURL=index.js.map
The line is commented out, but only by using double slashes. This means that minification of the plugin by a caching plugin could potentially be re-including the variable assignment. If it’s not being used then it should probably be removed, or at least commented out using /* slash asterisk */ notation like the rest of the comments I see in there.
-Michael
- The topic ‘Intermittent 404 error: ultimate-addons-for-gutenberg/dist/index.js.map’ is closed to new replies.