Recently updated my Magento version from 2.2.3 to 2.3.7 and encountered a peculiar issue. On the product details page, I am seeing an error message in the console related to add-home-breadcrumb.js:
BASE_URL is not defined.
https://i.sstatic.net/Nikep.png
Seeking assistance to resolve this issue.
Investigating Further :
The error seems to be originating from the file:
vendor/magento/module-theme/view/frontend/web/js/view/add-home-breadcrumb.js
Refer to the screenshot below; console.log is not providing any output here. https://i.sstatic.net/YlpPG.png
I have attempted to search for a solution without luck so far. One observation is that breadcrumb functionality was not present in the previous version 2.2.3 but is now included in 2.3.7.
The path to the file causing the issue is:
vendor/magento/module-theme/view/frontend/requirejs-config.js
Please refer to the screenshot below; the comparison between the new version (2.3.7) on the left and the previous version (2.2.3) on the right. https://i.sstatic.net/ShJHL.png