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

Two ref errors stopping anything from loading. #9

Open
jackkemmish opened this issue Jul 12, 2022 · 2 comments
Open

Two ref errors stopping anything from loading. #9

jackkemmish opened this issue Jul 12, 2022 · 2 comments

Comments

@jackkemmish
Copy link

jackkemmish commented Jul 12, 2022

Hi there, I am trying to add this to a project of mine and have potentially found a couple of issues.

When clicking the Main table of contents document created by this plugin on the left pane, it starts to show a spinner to load content then fails and only shows Add items from the list below with nothing below.

In the console there are 2 errors, one being Warning: forwardRef render functions accept exactly two parameters: props and ref. Did you forget to use the ref parameter? and the other Warning: Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?.

Adding this schema also adds a folder called Hierarchial tree, but clicking into this shows a list of untitled pages and clicking on one returns this:

Unknown field found
Encountered a field that is not defined in the schema.
This field is not defined in the schema, which could mean that the field definition has been removed or that someone else has added it to their own local project and have not deployed their changes yet.

It might be myself missing something here as I am new, and if I am can you point me in the right direction please.

All of my Sanity versions are 2.30 so I have made sure it's compatible.

Hope you can advise.

Thanks,
Jack

@kibner
Copy link

kibner commented Aug 2, 2022

I am having the exact same issue and don't know if I am doing something wrong or what.

@lelouchB
Copy link

lelouchB commented Oct 3, 2022

Having same issue

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