SocialSharing Plugin ReferenceError: require is not defined

I am using SocialSharing plugin :

in my app. Plugin is working fine but console is showing error on these lines from plugin’s file :

var cordova = require(‘cordova’);

function SocialSharing() {

Error :
SocialSharing.js:1 Uncaught ReferenceError: require is not defined
SocialSharing.js:1 (anonymous function)

Can anyone help in this?

sounds like it is using an amdloader like requirejs and it is not there?

@Shilpa i am having the same issue as well…did u find any solution…the app works fine and nothing breaks but the console shows up this problem

I am also facing this problem. +1 for solution