From your Next.js application, add this to package.json: "@mux/videojs-kit": "file:../videojs-mux-kit", (update the file:../ syntax to the correct directory where videojs-mux-kit is installed
Import the library
import videojs from '@mux/videojs-kit';
import '@mux/videojs-kit/dist/index.css';
See error message:
When debugging I can see node_modules/@mux/videojs-kit is installed. The dist/index.js file exists and appears to compiled correctly.
I took a peak at webpack.config.js, I don't see any obvious mis-configurations, but this is also my first time looking at esbuild, so I don't quite understand if there are caveats.
npm run build
"@mux/videojs-kit": "file:../videojs-mux-kit",
(update thefile:../
syntax to the correct directory where videojs-mux-kit is installedSee error message:
When debugging I can see
node_modules/@mux/videojs-kit
is installed. Thedist/index.js
file exists and appears to compiled correctly.I took a peak at
webpack.config.js
, I don't see any obvious mis-configurations, but this is also my first time looking at esbuild, so I don't quite understand if there are caveats.Any ideas?