Skip to content

Unable to resolve the source file for ‘…Magento_Customer/js/zxcvbn.js.map’

I’m running Magento 2.4.0 in developer mode with server-side compilation using PHP Less library.

Console is showing this error in every page:

DevTools failed to load SourceMap: Could not load content for https://example.com/pub/static/version1600339825/frontend/Example/default/en_US/Magento_Customer/js/zxcvbn.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE

I tried to access to https://example.com/pub/static/version1600339825/frontend/Example/default/en_US/Magento_Customer/js/zxcvbn.js.map through the browser and it says:

Unable to resolve the source file for 'frontend/Example/default/en_US/Magento_Customer/js/zxcvbn.js.map'
<pre>#1 MagentoFrameworkAppStaticResource->launch() called at [vendor/magento/framework/App/Bootstrap.php:263]
#2 MagentoFrameworkAppBootstrap->run() called at [pub/static.php:13]
</pre>

I checked also the file https://example.com/pub/static/version1600339825/frontend/Example/default/en_US/Magento_Customer/js/zxcvbn.js and it exists.


What I tried

I thought the error was generated by a file merging so I tried to exclude zxcvbn.js from it adding this row in my theme etc/view.xml:

<item type="file">Magento_Customer::js/zxcvbn.js</item> <!-- It was already present -->
<item type="file">Magento_Customer::js/zxcvbn.min.js</item>
<item type="file">Magento_Customer::js/zxcvbn.js.map</item>

but it didn’t work.

Any ideas?