How to include new file in Magento 2.2 ?

Spread the love

i was including a js file at


Which was showing me the following errors:

My requirejs-config has this in it:

after some research i found a solution.Actually The problem is: system loaded jquery after my js (our js need jquery for working).Then i Tried this

and it started working !!

Leave a Reply

Your email address will not be published. Required fields are marked *