How rewrite this js file in magento2

by 3434   Last Updated February 11, 2019 09:09 AM

// Global Namespace
var test=
{
}

i am using this but not working

var config = {
    map: {
        '*': {
            'abc_def/js/view/payment/method-renderer/cryozonic_stripe':'my_module/js/view/payment/method-renderer/cryozonic_stripe'

        }

    }
};

but not woking

Tags : magento2


Answers 1


  1. Please make sure your module is enabled:

php bin/magento module:status Vendor_Module

  1. Make sure your requirejs-config.js is under app/code/Vendor/Module/view/frontend folder

  2. Remove var/view_preprocessed and pub/static/frontend folders

  3. Run this command to clear caches:

php bin/magento c:c

Babon
Babon
February 11, 2019 08:31 AM

Related Questions