For some strange reason I can’t seem to get videojs working in ionic 2. I went ahead and imported the package through npm and then installed the types for it. When i go to create a new player via the videojs function I get an error stating.
Cannot find module "videojs"
Stack
Error: Cannot find module "videojs"
at Object.<anonymous> (http://localhost:8100/build/main.js:62308:7)
at __webpack_require__ (http://localhost:8100/build/main.js:20:30)
at Object.<anonymous> (http://localhost:8100/build/main.js:62446:97)
at __webpack_require__ (http://localhost:8100/build/main.js:20:30)
at Object.<anonymous> (http://localhost:8100/build/main.js:62551:83)
at __webpack_require__ (http://localhost:8100/build/main.js:20:30)
at Object.<anonymous> (http://localhost:8100/build/main.js:43987:69)
at __webpack_require__ (http://localhost:8100/build/main.js:20:30)
at Object.<anonymous> (http://localhost:8100/build/main.js:132948:81)
at __webpack_require__ (http://localhost:8100/build/main.js:20:30)
I have looked over the typescript file several times and it looks like i’m doing everything properly.
let video = videojs("video");
Thanks in advance!