Skip to content

npm run dev fails with ERR_REQUIRE_CYCLE_MODULE #169

@meredithlampe

Description

@meredithlampe

If you find a security vulnerability, do NOT open an issue. Email [email protected] instead.

Describe the bug

On node <= 22.14 a circular dependency in Sanity 4.20.0 causes npm run dev to fail.

To Reproduce

Steps to reproduce the behavior:

  1. Install node 22.14
  2. run npm run dev

Expected behavior

Build succeeds

Screenshots
If applicable, add screenshots to help explain your problem.

Which versions of Sanity are you using?

Run sanity versions in the terminal and copy-paste the result here.

@sanity/cli (global) 3.98.0 (latest: 4.21.1)
@sanity/prettier-config 2.0.2 (latest: 3.0.0)

What operating system are you using?

macOS Sequoia

Which versions of Node.js / npm are you running?

Run npm -v && node -v in the terminal and copy-paste the result here.

11.3.0
v22.14.0

Additional context

Add any other context about the problem here.

Security issue?

Any security issues should be submitted directly to [email protected]. In order to determine whether you are dealing with a security issue, ask yourself these two questions:

  • Can I access something that's not mine, or something I shouldn't have access to?
  • Can I disable something for other people? If the answer to either of those two questions are "yes", then you're probably dealing with a security issue. Note that even if you answer "no" to both questions, you may still be dealing with a security issue, so if you're unsure, just email us at [[email protected]](mailto:[email protected].

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions