This issue appeared only with the new products that we recently imported into the Magento. All these new products have different attributes and attribute set.
Prices are still changing correctly on the old configurable products. So the issue is only with the new products.
Console error also displayed but that is generic