Closed nmndwivedi closed 2 months ago
Ok fixed it by changing require to import in next config
const { withNextVideo } = require("next-video/process");
needed to be
import { withNextVideo } from "next-video/process";
Having same problem and changing the require to import didnt work for me, using nextjs 15
Fixed: next.config,ts needed to be next.config.mjs
Trying to sync the videos in my next js project to mux Im getting the following error
Looking into the source of the error it is coming from this function in config.js in next-video package
The config isnt being loaded. Is anyone else facing this issue?
Versions: "next": "14.2.8", "next-video": "^1.2.0",