-
Notifications
You must be signed in to change notification settings - Fork 426
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
Studio won't start (Uncaught TypeError: Cannot read property 'sanity' of undefined) #2190
Comments
Also experiencing the same issue. |
The same as well Which versions of Sanity are you using?
What operating system are you using? Which versions of Node.js / npm are you running?
|
Are any of you having |
Not in Before:
After:
That plugin did indeed "require" a peer dependency of v1, so I tried uninstalling it, but it made no difference; the same error occurs. New dependency tree:
I'm sure installing |
Anyone else using sanity-plugin-tabs? |
Yes I have been having problems with sanity-plugin-tabs as well. I have been trying to solicit help on sanity slack channel to no avail. Knut ( I believe he is in the leadership of Sanity.io) suspects that there may be an issue with sanity-plugin-tabs. As to the actual problem described in this GH issue, I am not sure it has to do with sanity-plugin-tabs, since I was able to get everything compiling in my local studio yesterday with the latest Sanity Releases, including sanity-plugin-tabs. While I have been able to get everything running, I am still facing problems with other issues that I believe are related to Tabs. My experience thus far trying to develop with in the Sanity studio, has been very difficult. I have gone down many rabbit holes trying to figure out if a problem stems from a 3rd party plugin, outdated sanity version, or just some failure to understand how documents, objects, fields, and field-types relate to user input. I am using Tabs to reveal fields from a shopify Product document. When the user enters text in the input field, a kind of processing delay occurs as the the entire Edit Pane of the studio begins to continually re-render with each input. It builds up until the user is unable to see the text they are entering for several seconds after entering it. You can find my links on Slack to this issue here: Currently, I downloaded sanity-plugin-tabs as zip file from git hub and copied into my studio as an inputComponent. Downloading and including this way, I am hoping to continue to debugging. Hence, my other question about how documents are processed in the sanity studio. https://sanity-io-land.slack.com/archives/C9Z7RC3V1/p1608246117141700 |
We're experiencing the same issue and we're not using |
@israelroldan is the "same issue" that you are referring too, the issue with the sanity studio crashing on instantiation or the issue of a delay in processing of text in an input field as the speed and volume of text increases? |
I am not using this plugin. My issue was with a different plugin. I believe all plugins using Styled Components may be affected by this, because the current release of Sanity is requiring both versions 5.1 and 5.2 of Styled Components in its dependency tree. |
Deleting my However, this should not be necessary, and I still think there is a broken dependency chain in Sanity. Specifically:
If you meet the peer dependency, I believe you will solve the issue. |
I have no idea what causes it, but at least to me deleting |
…d of direct dependencies This should help address issues with multiple versions of both @sanity/ui and styled-components (e.g. #2190).
This should be fixed after the introduction of |
For those still with the problem, I'm still facing this when using I'll notify the author about it :) Note: this is probably because I'm using yarn workspaces, as the same studio was working fine before switching to it! |
To anyone else still being bothered with this, try using I've got one project where |
Sanity v2.11.0 resolved this for my envs. |
go this error after using sanity start command for checking the schemas for my project, although it was not showing any error on command line but while visiting the localhost it was giving this error. |
Found a potential cause of this issue on Sanity's slack (if anyone else has this problem) : an object in the schema was missing a type. |
Thanks. it works now |
Can you explain please? I am getting this error and cannot find a solution. |
how did you fix it |
I faced the same error and solve it by installing the canary version of next 13 "npm i next@13.0.8-canary.2" |
I'm getting the following when trying to run the latest version of Sanity:
This is where the error is occurring:
sanity/packages/@sanity/base/src/components/GlobalStyle.tsx
Line 6 in 00c0016
I think the problem might be this downgrade from
@sanity/ui@1.0.0-beta.14
to@sanity/ui@0.28.0
:https://github.com/sanity-io/sanity/pull/2183/files
Rolling back with
npm i @sanity/base@2.0.9 @sanity/cli@2.0.9 @sanity/components@2.0.9 @sanity/core@2.0.9 @sanity/dashboard@2.0.9 @sanity/default-layout@2.0.9 @sanity/default-login@2.0.9 @sanity/desk-tool@2.0.9 @sanity/google-maps-input@2.0.9 @sanity/vision@2.0.9
resolves the issue.Which versions of Sanity are you using?
What operating system are you using?
Happens in Debian dev and Ubuntu build environments.
Which versions of Node.js / npm are you running?
The text was updated successfully, but these errors were encountered: