Magento version: 2.4.6p3
Let's take example of 3rd party: Strategery_Infinitescroll
Magepack bundling - 1
Magento default bundling - 0
js location in module: app/code/Strategery/Infinitescroll/view/frontend/web/js/infinitescroll.js
js location in pub/static/: static/frontend/{THEME}/site2/en_US/Strategery_Infinitescroll/js/infinitescroll.min.js
However, Magento is looking for infinitescroll.min.js inside: static/frontend/{THEME}/site2/en_US/infinitescroll.min.js
and there are other modules too with same error.
IT IS HAPPENING ONLY IN PRODUCTION MODE, NOT IN DEVELOPER MODE
Magento version: 2.4.6p3
Let's take example of 3rd party: Strategery_Infinitescroll
Magepack bundling - 1
Magento default bundling - 0
js location in module: app/code/Strategery/Infinitescroll/view/frontend/web/js/infinitescroll.js
js location in pub/static/: static/frontend/{THEME}/site2/en_US/Strategery_Infinitescroll/js/infinitescroll.min.js
However, Magento is looking for infinitescroll.min.js inside: static/frontend/{THEME}/site2/en_US/infinitescroll.min.js
and there are other modules too with same error.
IT IS HAPPENING ONLY IN PRODUCTION MODE, NOT IN DEVELOPER MODE