We are using Magento 2.4.5-p1
We add popper.js via a custom module but in the browser console, it is still showing -
GET `http://127.0.0.1/xyz/pub/popper.js net::ERR_ABORTED 404 (Not Found)`
Does anyone face this type of issue?
How you added the popper.js it looks wrong. There are many ways to add js in Magento 2.
The easy one is in default_head_blocks.xml
layout xml in app/design/frontend/Vendor/Theme/Magento_Theme/layout/
<!-- The following two ways to add local JavaScript files are equal -->
<script src="Magento_Catalog::js/sample1.js"/>
<link src="js/sample.js"/>
Here is a similar question How to add a custom javascript to theme in Magento 2?.