porto theme

We have purchased theme from Porto We have integrated the theme and applied patch for Magento2.2 CE. While compilation we are getting an error as follows

gallery.js:297 Uncaught TypeError: settings.$elementF.fotorama is not a function
at UiClass.initGallery (gallery.js:297)
at UiClass.initialize (gallery.js:139)
at UiClass.initialize (wrapper.js:109)
at UiClass (class.js:49)
at main.js:31
at Object.execCb (db2cfb207124dfa2df050f1ef1a6e743.js:1650)
at Object.context.execCb (resolver.js:131)
at Module.check (db2cfb207124dfa2df050f1ef1a6e743.js:866)
at Module. (db2cfb207124dfa2df050f1ef1a6e743.js:1113)
at db2cfb207124dfa2df050f1ef1a6e743.js:132

Contact the author who will be best placed to help https://help.market.envato.com/hc/en-us/articles/203039054-How-to-contact-an-author