You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Importing newrelic-video-videojs like newrelic-video-core can be imported (and is imported in this repo) throws the following error in the Typescript project:
Attempted import error: 'VideojsTracker' is not exported from 'newrelic-video-core' (imported as 'nrvideo').
Making the following changes solved the problem for me:
diff --git a/node_modules/newrelic-video-videojs/src/index.js b/node_modules/newrelic-video-videojs/src/index.js
index 32b64c7..f15b601 100644
--- a/node_modules/newrelic-video-videojs/src/index.js+++ b/node_modules/newrelic-video-videojs/src/index.js@@ -2,5 +2,4 @@ import * as nrvideo from 'newrelic-video-core'
import Tracker from './tracker'
import './register-plugin'
-nrvideo.VideojsTracker = Tracker-module.exports = nrvideo+export default { ...nrvideo, VideojsTracker: Tracker }
The text was updated successfully, but these errors were encountered:
Importing
newrelic-video-videojs
likenewrelic-video-core
can be imported (and is imported in this repo) throws the following error in the Typescript project:Making the following changes solved the problem for me:
The text was updated successfully, but these errors were encountered: