After gulp build in compiled version and as well as test page, I am getting below error
VIDEOJS: ERROR: TypeError: Templates[templateName] is not a function
at PlayerButton.renderTemplate (player_ui_component.js:70)
at PlayerButton.render (player_button.js:29)
at new PlayerButton (player_button.js:12)
at new Controls (controls.js:34)
at AnnotationComments.postLoadDataConstructor (annotationcomments.js:61)
at HTMLDivElement.data.dispatcher (video.js:1866)
at trigger (video.js:2002)
at Player.trigger$1 [as trigger] (video.js:2887)
at Player. [as handleTechLoadeddata] (video.js:28708)
at HTMLVideoElement.data.dispatcher (video.js:1866)
(anonymous) @ video.js:80
log.error @ video.js:268
data.dispatcher @ video.js:1868
trigger @ video.js:2002
trigger$1 @ video.js:2887
Player. @ video.js:28708
data.dispatcher @ video.js:1866
Video JS version: 7.6.6
Videojs-annotation-comments: 2.0.1
Node: 10.6.3
NPM: 6.9.0
After gulp build in compiled version and as well as test page, I am getting below error
VIDEOJS: ERROR: TypeError: Templates[templateName] is not a function at PlayerButton.renderTemplate (player_ui_component.js:70) at PlayerButton.render (player_button.js:29) at new PlayerButton (player_button.js:12) at new Controls (controls.js:34) at AnnotationComments.postLoadDataConstructor (annotationcomments.js:61) at HTMLDivElement.data.dispatcher (video.js:1866) at trigger (video.js:2002) at Player.trigger$1 [as trigger] (video.js:2887) at Player. [as handleTechLoadeddata ] (video.js:28708)
at HTMLVideoElement.data.dispatcher (video.js:1866)
(anonymous) @ video.js:80
log.error @ video.js:268
data.dispatcher @ video.js:1868
trigger @ video.js:2002
trigger$1 @ video.js:2887
Player. @ video.js:28708
data.dispatcher @ video.js:1866
Video JS version: 7.6.6 Videojs-annotation-comments: 2.0.1 Node: 10.6.3 NPM: 6.9.0