cancel
Showing results for 
Search instead for 
Did you mean: 

How to Override 3rd party module requirejs-config.js film in my custom module?

SOLVED

How to Override 3rd party module requirejs-config.js film in my custom module?

I am not able to Override the 3rd party module requirejs-config.js film in my custom module. Can anyone guide me on how to override the requirejs config file?

1 ACCEPTED SOLUTION

Accepted Solutions

Re: How to Override 3rd party module requirejs-config.js film in my custom module?

I solved it. It was my mistake. I put require js file outside of adminhtml folder in my custom module. That's why it is failed to override the 3rd party js file. Now it is working.

View solution in original post

5 REPLIES 5

Re: How to Override 3rd party module requirejs-config.js film in my custom module?

Hello @5d970acbb8c78 

 

1) make sure your module depends on that module

2) make sure how that module js called does it called by path or alias?

3) make sure your rewrite showing into require-js.config file into view source

 

hope it will help you.


Problem solved? Click Kudos & Accept as Solution!
Sunil Patel
Magento 2 Certified Professional Developer & Frontend Developer

Re: How to Override 3rd party module requirejs-config.js film in my custom module?

1 and 2nd point I checked it. Can you elaborate about your 3rd point?

Re: How to Override 3rd party module requirejs-config.js film in my custom module?

Hello @5d970acbb8c78 

 

open your site and view the page source and check require-config.min.js and check your rewrite added if not then remove that file from server and refresh your page and check it

 


Problem solved? Click Kudos & Accept as Solution!
Sunil Patel
Magento 2 Certified Professional Developer & Frontend Developer

Re: How to Override 3rd party module requirejs-config.js film in my custom module?

Re: How to Override 3rd party module requirejs-config.js film in my custom module?

I solved it. It was my mistake. I put require js file outside of adminhtml folder in my custom module. That's why it is failed to override the 3rd party js file. Now it is working.