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

npm run dev not working for me in sanity v3 #5373

Open
Avii69 opened this issue Dec 15, 2023 · 4 comments
Open

npm run dev not working for me in sanity v3 #5373

Avii69 opened this issue Dec 15, 2023 · 4 comments

Comments

@Avii69
Copy link

Avii69 commented Dec 15, 2023

I am trying sanity for the first time.

After installing all dependencies, I use npm run dev, but it's stuck on

✔ Checking configuration files...

How to debug this?

Node: 16.13.0

sanity studio v3

@francislagares
Copy link

Yep, I have the same issue.

But in my case I get 'TypeError: Cannot read properties of undefined (reading 'toLowerCase')'
After debuggin' the file the error is thrown from 'node_modules/framer-motion/dist/cjs/index.js:4245:25)' I've found a workaround in line 4244 by adding an optional chaining after userAgent:

const userAgentContains = (string) => typeof navigator !== "undefined" &&
navigator.userAgent?.toLowerCase().includes(string);

Hopefully this will be fixed in a future release or update.

@bjoerge
Copy link
Member

bjoerge commented Dec 18, 2023

@Avii69: Node v16 is no longer maintained, please upgrade to v18, v20 (or >=v21.1.0) and see if it helps.

@francislagares: This looks like a duplicate of #5087 and #5183. Please try with Node v18, v20 or a version higher than v21.1.0.

@Avii69
Copy link
Author

Avii69 commented Dec 18, 2023

@bjoerge : I have updated to node v 21.4.0 but still getting the same issue .
Screenshot 2023-12-18 184630

@bjoerge
Copy link
Member

bjoerge commented Dec 18, 2023

@Avii69 Running DEBUG=sanity:cli:* npm run dev might give you some useful debugging info.

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