1

I tried to override magento/module-checkout/view/frontend/web/js/view/shipping-address/address-renderer/default.js

For this in my custom module i have created under Module/Namespace/view/frontend, the file with the name requirejs-config.js with this content:

var config = {
    'map' :{
        '*': {
            'Magento_Checkout/js/view/shipping-address/address-renderer/default':'Module_Namespace/js/view/shipping-address/address-renderer/default'
        }
    }
};

Under Module/Namespace/view/web/js/view/shipping-address/address-renderer i have created the file default.js

after i clean the cache on the console i have this err msg:

Failed to load resource: the server responded with a status of 404 (Not Found)
(index):1 Refused to execute script from '.../static/version1524065927/frontend/Magento/luma/en_US/Module_Namespace/js/view/shipping-address/address-renderer/default.js' because its MIME type ('text/plain') is not executable, and strict MIME type checking is enabled.

Does anyone know why this happend and is not working?

Note: I am on developer mode!

3

1 Answer 1

0

Try to add below line in your .htaccess file.

<IfModule mod_headers.c>
    Header always set X-Content-Type-Options nosniff
</IfModule>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.