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

Uncaught error: process is not defined with update to 3.5.1 #4230

Closed
ritesh-kanchi opened this issue Mar 2, 2023 · 2 comments
Closed

Uncaught error: process is not defined with update to 3.5.1 #4230

ritesh-kanchi opened this issue Mar 2, 2023 · 2 comments

Comments

@ritesh-kanchi
Copy link

Upon updating to Sanity 3.5.1, my Studio works perfectly locally - but after deploying it via sanity deploy, the following error is displayed:

Uncaught error: process is not defined
https://STUDIO.sanity.studio/static/desk-7d0f4bc4-4c87892e.js:53:4510
ReferenceError: process is not defined
    at https://STUDIO.sanity.studio/static/desk-7d0f4bc4-4c87892e.js:53:4510

Not sure what the problem here is, but it occurred after updating my Studio from 3.5.0 to 3.5.1.

Screenshot

Which versions of Sanity are you using?
Sanity 3.5.1

What operating system are you using?
macOS Ventura 13.2.1

Which versions of Node.js / npm are you running?
npm 9.1.1
node v18.12.1

@rexxars
Copy link
Member

rexxars commented Mar 9, 2023

Looks like this is an issue with certain versions of the styled-components dependency. In your package.json file, under dependencies, try and set styled-components to ^5.3.8`, then reinstalling dependencies:

{
  // ...
  "dependencies": {
    // ...
    "styled-components": "^5.3.8"
  },
  // ...
}

@github-actions
Copy link
Contributor

github-actions bot commented Jul 8, 2023

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 Jul 8, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants