My/Module/view/frontend/requirejs-config.js
var config = {
map: {
"*": {
"catalogAddToCart": "Magento_Catalog/js/catalog-add-to-cart"
}
}
};
Please keep one thing in mind: Modules are loaded before design, so if any requirejs-config.js you mentioned is located in the DESIGN folder, you will need to apply a requirejs-config.js change in design.
If issue solved, Click Kudos & Accept as Solution.
LitCommerce - The Most Simple & Affordable Multi-channel Selling Tool