Closed isrezaei closed 5 months ago
@isrezaei are you still running into this issue? it's possible you might need to restart the TS server in VS code.
if you want to use string video sources which don't need uploading you can use the player export added in v1.1.0
example: https://next-video-demo.vercel.app/player-only https://github.com/muxinc/next-video/blob/main/examples/default-provider/app/(default)/player-only/page.tsx
Hello @isrezaei, did you manage to solve it? I have the same error, and I'm not finding a solution, even redoing all the steps in the documentation.
Well, I just solved it, I just had to put tsconfig's moduleResolution as bundler and then it worked, I still don't know if this could break other things in my project, I hope not.
yes, that's nextjs default nowadays. "moduleResolution": "bundler",
thanks for following up here!
When I imported the next-video package in my component, I got an error that said S2307: Cannot find module 'next-video' or its corresponding type declarations. How can I fix that? I installed the package according to the document.
My problems
Also In the console log, I received many 404 errors! I don't know why I got this error after playing the video!