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 running sanity studio locally right after project initialization #5183

Closed
bernardodemarco opened this issue Nov 14, 2023 · 2 comments
Closed

Comments

@bernardodemarco
Copy link

Describe the bug

Unable to execute sanity studio locally right after initializing the project. The same error has also been reported here.

To Reproduce

Steps to reproduce the behavior:

  1. npm -y create sanity@latest
  2. follow settings steps
  3. npm run dev or sanity dev
  4. See error

Expected behavior

Default studio to be properly ran locally.

Screenshots
image

Which versions of Sanity are you using?

@sanity/cli (global) 3.19.2 (up to date)
@sanity/eslint-config-studio 3.0.1 (up to date)
@sanity/vision 3.19.2 (up to date)
sanity 3.19.2 (up to date)

What operating system are you using?
Windows 11 with WSL2

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

10.2.0
v21.0.0

Additional context

I have reproduced the same steps mentioned above in Windows and it works fine.

@bjoerge
Copy link
Member

bjoerge commented Nov 14, 2023

This is caused by a bug in Node.js that's been fixed in v21.1 (see nodejs/node#50269)

For better stability we recommend using even numbered Node versions, so v18 or v20.

Copy link
Contributor

This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants