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 ` net::ERR_ABORTED 404 (Not Found)`

Does anyone face this type of issue?

1 Answer 1


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?.

  • I tried this also but it is not working. Feb 6 at 6:27
  • try adding it with cdn Feb 7 at 12:24
  • Also, try with CDN still showing - GET net::ERR_ABORTED 404 (Not Found) Feb 10 at 7:47
  • When you added the popper.js with CDN, remove the one you added to get it localy. Somewhere it is configured to also get it from local files. Feb 13 at 10:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.