Skip to content

SyntaxError: The requested module 'react-dropzone' does not provide an export named 'useDropzone' #252

@N9des

Description

@N9des

Describe the bug
Since updating to 3.0.2, we get this error when starting sanity:

import { useDropzone } from "react-dropzone";
         ^^^^^^^^^^^
SyntaxError: The requested module 'react-dropzone' does not provide an export named 'useDropzone'

To Reproduce
Steps to reproduce the behavior:

  1. Update the packages using ncu (sanity-plugin-media) to 3.0.2
  2. run npm run dev
  3. Go to /studio
  4. See error

Expected behavior
The entire studio should not crash on this error.

Screenshots

Image

Plugin and environment information:

  • Plugin version: 3.0.2
  • Sanity version 3.81.0
  • Operating system and version OSX Sequoia 15.3.2
  • Browser and version number: Arc 1.87.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions