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

undefined is not a function when passing mime type to the useDropzone hook #1337

Open
shoaib-vaival opened this issue Jan 13, 2024 · 3 comments
Labels

Comments

@shoaib-vaival
Copy link

Describe the bug

A build error is occurring in Next.js with the message "undefined is not a function." This issue arises when attempting to pass a MIME type to the useDropzone hook while using the Next.js app router.

To Reproduce

Steps to reproduce the behavior:

  1. Create a Generic FileUpload component
  2. import it in react server component and provide mime type according to document
  3. run npm or yarn build
  4. See error
@userAdityaa
Copy link

Hello, I'm interested in this issue. But, im new to github. so, im not able to recreate this issue can you help me with it.

@shoaib-vaival
Copy link
Author

@userAdityaa yes sure, you can create this just using React dropzone in server side component.

@userAdityaa
Copy link

Im sorry but im still not able to reacreate this can you help me with this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants