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

Fix: InvalidValueInput from @sanity/form-builder is no longer a default export #61

Merged
merged 1 commit into from
Jan 26, 2023

Conversation

matt-koevort
Copy link
Contributor

As of v2.12.0: sanity-io/sanity@f317fd8

This causes the Tabs plugin to break in Sanity if the invalid input branch is reached - as the import is undefined:

Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.

This PR changes the import to a named import.

…lt export

As of v2.12.0: sanity-io/sanity@f317fd8

This causes the Tabs plugin to break in Sanity if the invalid input branch is reached - as the import is undefined.
@@ -106,6 +106,7 @@ Run the following commands at the root of this repository.

```
npm i
npm run build
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just FYI: had to add this to get the linking to work

@azzlack azzlack merged commit ed50c2b into azzlack:master Jan 26, 2023
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

Successfully merging this pull request may close these issues.

None yet

2 participants