Error while lib-jitsi-meet initJitsiConference - Cannot read property 'p2p' of undefined

When i add lib-jitsi-meet into my project using NextJs 7.0.2, i have this error:

My code :
Call.js

Error in
room = connection.initJitsiConference('conference', confOptions)