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

Sanity Studio install fails in CI #8852

Open
pepijnvandenhoven opened this issue Mar 6, 2025 · 2 comments
Open

Sanity Studio install fails in CI #8852

pepijnvandenhoven opened this issue Mar 6, 2025 · 2 comments

Comments

@pepijnvandenhoven
Copy link

pepijnvandenhoven commented Mar 6, 2025

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

Describe the bug

We're running into an issue in CI with the latest version of Sanity Studio (3.78.0). Looks like the scrollmirror package is the cause. Part of the output:

    W: npm error code 254
    W: npm error path /app/node_modules/scrollmirror
    W: npm error command failed
    W: npm error command sh -c npx only-allow pnpm

To Reproduce

Steps to reproduce the behavior:

This only occurs in CI (nodejs:20 runtime)

Expected behavior

Install and build succeeds

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

Which versions of Sanity are you using?

3.78.0

What operating system are you using?

NodeJS 20
npm 10.8.2

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].
@fweth
Copy link

fweth commented Mar 16, 2025

Same for me on my local machine running Ubuntu 24.04 with Node v22.14.0 and npm v10.9.2. Tried it first within a Next.js project and then in a clean directory without success. Using pnpm works but I prefer npm.

@hirasso
Copy link

hirasso commented Mar 25, 2025

I just released a fix for this:

https://github.com/hirasso/scrollmirror/releases/tag/v1.2.1

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

3 participants