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

Error when trying to deploy Sanity Studio #7869

Open
nalanart opened this issue Nov 23, 2024 · 0 comments
Open

Error when trying to deploy Sanity Studio #7869

nalanart opened this issue Nov 23, 2024 · 0 comments

Comments

@nalanart
Copy link

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

Describe the bug

Hello, I'm following the Getting Started walkthrough for Sanity Studio and I'm on the last step which is deploying my Studio with Sanity. When running the command npm run deploy, I receive the following error:

name studio-studio-july % npm run deploy   

> [email protected] deploy
> sanity deploy

✅ Checking project info
? Select existing studio hostname name
ℹ Building with auto-updates enabled

Error: Failed to fetch remote version for https://sanity-cdn.com/v1/modules/sanity/default/%5E3.64.2/t1732367503: fetchFn is not a function
    at getRemoteResolvedVersion (~/studio-studio-july/node_modules/sanity/lib/_chunks-cjs/buildAction.js:138:11)
    at compareStudioDependencyVersions (~/studio-studio-july/node_modules/sanity/lib/_chunks-cjs/buildAction.js:146:35)
    at Object.buildSanityStudio (~/studio-studio-july/node_modules/sanity/lib/_chunks-cjs/buildAction.js:190:28)
    at async Object.deployStudioAction [as default] (~/studio-studio-july/node_modules/sanity/lib/_chunks-cjs/deployAction.js:51:25)

To Reproduce

Steps to reproduce the behavior:

Same steps as in the Getting Started section of Sanity Studio.
Error occurs when running npm run deploy on the last step.

Expected behavior

The command runs as expected and Studio gets deployed successfully

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

Which versions of Sanity are you using?

From my package.json: "sanity": "^3.64.2",

What operating system are you using?
MacOS

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

8.19.4
v16.20.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].
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

1 participant