Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

import Video from 'next-video' not working properly in a monorepo setup #97

Closed
liam-germain opened this issue Nov 3, 2023 · 7 comments

Comments

@liam-germain
Copy link

Here is the error I am getting; 'Type error: Cannot find module 'next-video' or its corresponding type declarations.'

I am able to run the project locally and watch the video in my browser but the project still throws errors over this and I am not able to perform a production build of the application.

@codeship89
Copy link

Having the same issues here..

@Rychillie
Copy link

I'm having the same issue, but I'm not in a monorepo!

@Rychillie
Copy link

Fixed changing my moduleResolution to "bundler" on my tsconfig.json file

@luwes
Copy link
Collaborator

luwes commented Nov 13, 2023

I'm not sure this is related to monorepo's. Can you confirm next-video is installed in the Next.js app's dependencies?

@w4jo
Copy link

w4jo commented Nov 18, 2023

Fixed changing my moduleResolution to "bundler" on my tsconfig.json file

The same issue for me, but this breaks another package import.
Eg:

Could not find a declaration file for module '@calcom/embed-react'. '/Users/wajo/Code/ozoit/node_modules/.pnpm/@calcom+embed-react@1.3.0_react-dom@18.2.0_react@18.2.0/node_modules/@calcom/embed-react/dist/Cal.es.mjs' implicitly has an 'any' type.
  There are types at '/Users/wajo/Code/ozoit/apps/web/node_modules/@calcom/embed-react/dist/embed-react/src/index.d.ts', but this result could not be resolved when respecting package.json "exports". The '@calcom/embed-react' library may need to update its package.json or typings.ts(7016)

@eoinotoole
Copy link

eoinotoole commented Dec 4, 2023

One more for this issue 🥲 Not a mono repo, declaration files created as specified in the docs, next-video included in the dependencies, functionality works fine when running development server, just the type not being found

@luwes
Copy link
Collaborator

luwes commented Jan 24, 2024

closing in favor of #133
the monorepo topic is handled in #84

@luwes luwes closed this as not planned Won't fix, can't repro, duplicate, stale Jan 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants