Videojs-panorama, videojs-qualityselector plug-ins are not connected to videojs if installed via npm. and not in the description how to do it. used laravel

in app.js

import videojs from 'video.js'; window.videojs = videojs; 

in videojs.js

 require('videojs-panorama')(videojs); player.panorama({ backToHorizonCenter: false, clickToToggle: (!isMobile()), clickAndDrag: true, autoMobileOrientation: true, initFov: 100, VREnable: isMobile(), NoticeMessage: (isMobile()) ? "please drag and drop the video" : "click mouse", callback: function () { if (!isMobile()) player.play(); } }); 

produces an error: Uncaught TypeError: player.panorama is not a function

gives the same error when

 import panorama from 'videojs-panorama'; panorama(player, { backToHorizonCenter: false, clickToToggle: (!isMobile()), clickAndDrag: true, autoMobileOrientation: true, initFov: 100, VREnable: isMobile(), NoticeMessage: (isMobile()) ? "please drag and drop the video" : "click mouse", callback: function () { if (!isMobile()) player.play(); } }); 

    0