UI components and hooks for building video/audio players on the web. Robust, customizable, and accessible. Modern alternative to JW Player and Video.js.
Whenever I try building for production with npm run build I experience this error:
Uncaught TypeError: Cannot read properties of undefined (reading 'media') at vidstack-BErtLkZy.js:295:54725
Error in vidstack-BErtLkZy.js:295:54725 appears in line:
const dn = chrome.cast.media.TrackType.TEXT
Expected Behavior:
However, when I build for development with npm run dev, everything works as expected.
Current Behavior:
Whenever I try building for production with
npm run build
I experience this error: Uncaught TypeError: Cannot read properties of undefined (reading 'media') at vidstack-BErtLkZy.js:295:54725Error in vidstack-BErtLkZy.js:295:54725 appears in line: const dn = chrome.cast.media.TrackType.TEXT
Expected Behavior:
However, when I build for development with
npm run dev
, everything works as expected.Environment: