Js Minification Issue with Magento 2.4.3
Closed this issue · 1 comments
When we are in 'production' mode with the following OOB settings.
We are getting this error in Magento 2.4.3 (tested in vanilla) and because of this error 'Bolt' popup is not opening.
When we checked the code the problem is because of the 'vendor/boltpay/bolt-magento2/view/frontend/templates/js/replacejs.phtml' and bolt is trying to minify this js. While doing the minification in production mode, we are facing the above issue.
Steps to recreate:
a) Enable the above OOB Magento settings.
php bin/magento config:set dev/js/merge_files 1
php bin/magento config:set dev/js/minify_files 1
php bin/magento config:set dev/template/minify_html 1
b) Deploy your code in ‘production’ mode.
c) Add some products to cart and check the console in cart page
FYI: In Magento Developer Mode, I am not facing this issue and this issue is because of minify html
This PR hasn't been touched in a while. Marking it as stale. If there is no activity in two days this PR will be auto-closed.