😎 Discover cool tips and tricks for customization in our next Developer Deep Dive virtual event - sign up now!

React Is Not Defined Following Sanity Upgrade

2 replies
Last updated: Apr 10, 2021
Hello! I wonder if this is a known issue, I just upgraded an older project with
sanity upgrade
and now get
React is not defined
when I try to run it in the browser. The project really isn't complex but I can't seem to find the source of the problem.
Apr 9, 2021, 9:03 AM
Hi
user B
, could you check if there might be a missing React import in your schema definitions or custom components?
Alternatively, could you try removing your
node_modules
folder and
package-lock.json
+
yarn-lock.json
files before running
npm i
and trying once more to start the studio?
Apr 9, 2021, 9:48 AM
Thanks for the hint, I should have known better πŸ˜› - it was a missing import on a custom plugin.
Apr 10, 2021, 8:18 AM

Sanity– build remarkable experiences at scale

Sanity is a modern headless CMS that treats content as data to power your digital business. Free to get started, and pay-as-you-go on all plans.

Was this answer helpful?