muxinc / next-video

The easiest way to add video in your Nextjs app.
https://next-video.dev
MIT License
858 stars 33 forks source link

Error when processing files #270

Closed Roeck closed 4 months ago

Roeck commented 4 months ago

When running npx next-video sync, it keeps returning:

 - Processing file: teaser.MOV
✗ An unknown error occurred TypeError: Cannot read properties of undefined (reading 'provider')

Although, the structure and upload setup seems correct. Thoughts?

heff commented 4 months ago

Hi 👋 Which provider are you using? (default = Mux)

@luwes any initial thoughts?

Roeck commented 4 months ago

Hi @heff , yes, I'm using Mux as the provider. More specifically, I've been following this tutorial right here: https://www.youtube.com/watch?v=8guP6F56TPk

luwes commented 4 months ago

what's the contents of your next.config.(m)js file?

could you try out the steps from here? https://github.com/muxinc/next-video/issues/251#issuecomment-2112789735

could you make a reproduction online?

is it on Windows or Mac? what is your module resolution in tsconfig?

here is a working Codesandbox you could fork codesandbox.io/p/devbox/next-video-mux-j9nn73?file=%2Fapp%2Fpage.js%3A21%2C1

here is also a working next.js site https://github.com/muxinc/next-video/blob/main/examples/default-provider/app/(default)/page.tsx next-video-demo.vercel.app

related: https://github.com/muxinc/next-video/issues/212

Roeck commented 4 months ago

@luwes Solved! I appreciate the help