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

Lots of errors #26

Open
mysterybear opened this issue Nov 24, 2022 · 4 comments
Open

Lots of errors #26

mysterybear opened this issue Nov 24, 2022 · 4 comments

Comments

@mysterybear
Copy link

Hi,

Getting a lot of errors when using this plugin:

Warning: Unknown event handler property `onCloseClick`. It will be ignored.
    in div (created by ContainerQuery)
    in ContainerQuery (created by DefaultDialogChildren)
    in DefaultDialogChildren (created by DefaultDialog)
    in LayerProvider (created by LegacyLayerProvider)
    in LegacyLayerProvider (created by DefaultDialog)
    in Portal (created by DefaultDialog)
    in DefaultDialog (created by GeopointInput)
    in div (created by Fieldset)
    in div (created by styled.div)
    in styled.div (created by ElementWithChangeBar)
    in div (created by styled.div)
    in styled.div (created by ElementWithChangeBar)
    in ElementWithChangeBar (created by ChangeBarWrapper)
    in div (created by ChangeBarWrapper)
    in ChangeBarWrapper (created by CoreChangeIndicator)
    in CoreChangeIndicator (created by ContextProvidedChangeIndicator)
    in ContextProvidedChangeIndicator (created by Fieldset)
    in div (created by Fieldset)
    in div (created by Fieldset)
    in fieldset (created by Fieldset)
    in div (created by Fieldset)
    in Fieldset (created by GeopointInput)
    in GeopointInput (created by FormBuilderInputInner)
    in ChangeIndicatorProvider (created by FormBuilderInputInner)
    in div (created by FormBuilderInputInner)
    in FormBuilderInputInner (created by FormBuilderInput)
    in FormBuilderInput (created by ForwardRef(ObjectInputField))
    in ConditionalHiddenField (created by ForwardRef(ObjectInputField))
    in ForwardRef(ObjectInputField) (created by ForwardRef(ObjectInput))
    in ConditionalReadOnlyContextProvider (created by ConditionalReadOnlyField)
    in ConditionalReadOnlyField (created by ForwardRef(ObjectInput))
    in div (created by styled.div)
    in styled.div (created by ForwardRef(Box))
    in ForwardRef(Box) (created by Styled(Component))
    in Styled(Component) (created by ForwardRef(Grid))
    in ForwardRef(Grid) (created by Styled(Component))
    in Styled(Component) (created by FormFieldSet)
    in div (created by styled.div)
    in styled.div (created by ForwardRef(Box))
    in ForwardRef(Box) (created by Styled(Component))
    in Styled(Component) (created by FormFieldSet)
    in fieldset (created by styled.div)
    in styled.div (created by ForwardRef(Box))
    in ForwardRef(Box) (created by Styled(Component))
    in Styled(Component) (created by FormFieldSet)
    in FormFieldSet (created by ForwardRef(ObjectInput))
    in ForwardRef(ObjectInput)
    in ForwardRef(ObjectInput) (created by FormBuilderInputInner)
    in ChangeIndicatorProvider (created by FormBuilderInputInner)
    in div (created by FormBuilderInputInner)
    in FormBuilderInputInner (created by FormBuilderInput)
    in FormBuilderInput (created by ForwardRef(ObjectInputField))
    in ConditionalHiddenField (created by ForwardRef(ObjectInputField))
    in ForwardRef(ObjectInputField) (created by ForwardRef(ObjectInput))
    in ConditionalReadOnlyContextProvider (created by ConditionalReadOnlyField)
    in ConditionalReadOnlyField (created by ForwardRef(ObjectInput))
    in div (created by styled.div)
    in styled.div (created by ForwardRef(Box))
    in ForwardRef(Box) (created by Styled(Component))
    in Styled(Component) (created by ForwardRef(Grid))
    in ForwardRef(Grid) (created by ForwardRef(ObjectInput))
    in ForwardRef(ObjectInput)
    in ForwardRef(ObjectInput) (created by FormBuilderInputInner)
    in ChangeIndicatorProvider (created by FormBuilderInputInner)
    in div (created by FormBuilderInputInner)
    in FormBuilderInputInner (created by FormBuilderInput)
    in FormBuilderInput (created by SanityFormBuilder)
    in ReviewChangesContextProvider (created by SanityFormBuilder)
    in FormBuilderContext (created by SanityFormBuilderContext)
    in SanityFormBuilderContext (created by SanityFormBuilder)
    in SanityFormBuilder (created by FormView)
    in form (created by styled.div)
    in styled.div (created by ForwardRef(Box))
    in ForwardRef(Box) (created by FormView)
    in div (created by ForwardRef(RegionsWithIntersections))
    in div (created by styled.div)
    in styled.div (created by ForwardRef(RegionsWithIntersections))
    in ForwardRef(RegionsWithIntersections) (created by StickyOverlay)
    in StickyOverlay (created by OverlayEnabled)
    in Tracker (created by OverlayEnabled)
    in OverlayEnabled (created by FormView)
    in div (created by styled.div)
    in styled.div (created by ForwardRef(Box))
    in ForwardRef(Box) (created by Styled(Component))
    in Styled(Component) (created by ForwardRef(Container))
    in ForwardRef(Container) (created by FormView)
    in FormView (created by DocumentPanel)
    in div (created by ForwardRef(ScrollContainer))
    in ForwardRef(ScrollContainer) (created by Styled(Component))
    in Styled(Component) (created by DocumentPanel)
    in BoundaryElementProvider (created by DocumentPanel)
    in PortalProvider (created by DocumentPanel)
    in div (created by styled.div)
    in styled.div (created by ForwardRef(Box))
    in ForwardRef(Box) (created by Styled(Component))
    in Styled(Component) (created by ForwardRef(Card))
    in Fe (created by ThemeProvider)
    in ThemeProvider (created by ThemeColorProvider)
    in ThemeColorProvider (created by ForwardRef(Card))
    in ForwardRef(Card) (created by PaneContent__root)
    in PaneContent__root (created by ForwardRef(PaneContent))
    in ForwardRef(PaneContent) (created by DocumentPanel)
    in div (created by styled.div)
    in styled.div (created by ForwardRef(Box))
    in ForwardRef(Box) (created by Styled(Component))
    in Styled(Component) (created by ForwardRef(Flex))
    in ForwardRef(Flex) (created by DocumentPanel)
    in DocumentPanel (created by InnerDocumentPane)
    in div (created by ForwardRef(ScrollContainer))
    in ForwardRef(ScrollContainer) (created by EnabledChangeConnectorRoot)
    in Tracker (created by EnabledChangeConnectorRoot)
    in EnabledChangeConnectorRoot (created by Styled(EnabledChangeConnectorRoot))
    in Styled(EnabledChangeConnectorRoot) (created by InnerDocumentPane)
    in div (created by styled.div)
    in styled.div (created by ForwardRef(Box))
    in ForwardRef(Box) (created by Styled(Component))
    in Styled(Component) (created by ForwardRef(Flex))
    in ForwardRef(Flex) (created by InnerDocumentPane)
    in DialogProvider (created by InnerDocumentPane)
    in div (created by styled.div)
    in styled.div (created by ForwardRef(Box))
    in ForwardRef(Box) (created by Styled(Component))
    in Styled(Component) (created by ForwardRef(Flex))
    in ForwardRef(Flex) (created by ForwardRef(Pane))
    in BoundaryElementProvider (created by ForwardRef(Pane))
    in div (created by styled.div)
    in styled.div (created by ForwardRef(Box))
    in ForwardRef(Box) (created by Styled(Component))
    in Styled(Component) (created by ForwardRef(Card))
    in Fe (created by ThemeProvider)
    in ThemeProvider (created by ThemeColorProvider)
    in ThemeColorProvider (created by ForwardRef(Card))
    in ForwardRef(Card) (created by Styled(Component))
    in Styled(Component) (created by ForwardRef(Pane))
    in LayerProvider (created by LegacyLayerProvider)
    in LegacyLayerProvider (created by ForwardRef(Pane))
    in ForwardRef(Pane) (created by KeyboardShortcutResponder)
    in KeyboardShortcutResponder (created by GetHookCollectionState)
    in GetHookCollectionState (created by RenderActionCollectionState)
    in RenderActionCollectionState (created by DocumentActionShortcuts)
    in DocumentActionShortcuts (created by InnerDocumentPane)
    in InnerDocumentPane (created by DocumentPane)
    in ReferenceInputOptionsProvider (created by DocumentPane)
    in DocumentPaneProvider (created by DocumentPane)
    in DocumentPane (created by DeskToolPane)
    in PaneRouterProvider (created by DeskToolPane)
    in DeskToolPane
    in DeskToolPane (created by DeskTool)
    in div (created by styled.div)
    in styled.div (created by ForwardRef(Box))
    in ForwardRef(Box) (created by Styled(Component))
    in Styled(Component) (created by ForwardRef(Card))
    in Fe (created by ThemeProvider)
    in ThemeProvider (created by ThemeColorProvider)
    in ThemeColorProvider (created by ForwardRef(Card))
    in ForwardRef(Card) (created by Styled(Component))
    in Styled(Component) (created by PaneLayout)
    in PaneLayout (created by Styled(PaneLayout))
    in Styled(PaneLayout) (created by DeskTool)
    in PortalProvider (created by DeskTool)
    in DeskToolProvider (created by DeskTool)
    in DeskTool (created by DeskToolRoot)
    in ErrorBoundary (created by DeskToolRoot)
    in DeskToolRoot (created by RenderTool)
    in ErrorBoundary (created by RenderTool)
    in RenderTool (created by SchemaErrorReporter)
    in RouteScope (created by SchemaErrorReporter)
    in div (created by styled.div)
    in styled.div (created by ForwardRef(Box))
    in ForwardRef(Box) (created by Styled(Component))
    in Styled(Component) (created by ForwardRef(Flex))
    in ForwardRef(Flex) (created by Styled(Component))
    in Styled(Component) (created by SchemaErrorReporter)
    in div (created by styled.div)
    in styled.div (created by ForwardRef(Box))
    in ForwardRef(Box) (created by Styled(Component))
    in Styled(Component) (created by ForwardRef(Flex))
    in ForwardRef(Flex) (created by Styled(Component))
    in Styled(Component) (created by SchemaErrorReporter)
    in div (created by styled.div)
    in styled.div (created by ForwardRef(Box))
    in ForwardRef(Box) (created by Styled(Component))
    in Styled(Component) (created by ForwardRef(Flex))
    in ForwardRef(Flex) (created by Styled(Component))
    in Styled(Component) (created by SchemaErrorReporter)
    in SchemaErrorReporter (created by DefaultLayout)
    in DefaultLayout (created by DefaultLayoutRoot)
    in RouterProvider (created by DefaultLayoutRoot)
    in LoginWrapper (created by NormalizedLoginWrapper)
    in NormalizedLoginWrapper (created by DefaultLayoutRoot)
    in DefaultLayoutRoot (created by AppProvider)
    in div (created by styled.div)
    in styled.div (created by ForwardRef(Box))
    in ForwardRef(Box) (created by Styled(Component))
    in Styled(Component) (created by ForwardRef(Card))
    in Fe (created by ThemeProvider)
    in ThemeProvider (created by ThemeColorProvider)
    in ThemeColorProvider (created by ForwardRef(Card))
    in ForwardRef(Card) (created by Styled(Component))
    in Styled(Component) (created by AppProvider)
    in SnackbarProvider (created by AppProvider)
    in ToastProvider (created by AppProvider)
    in LayerProvider (created by AppProvider)
    in PortalProvider (created by AppProvider)
    in UserColorManagerProvider (created by AppProvider)
    in AppProvider (created by SanityRoot)
    in Fe (created by ThemeProvider)
    in ThemeProvider (created by SanityRoot)
    in ZIndexProvider (created by SanityRoot)
    in SanityRoot
    in AppContainer
Warning: Unknown event handler property `onOpen`. It will be ignored.
    in div (created by ContainerQuery)
    in ContainerQuery (created by DefaultDialogChildren)
    in DefaultDialogChildren (created by DefaultDialog)
    in LayerProvider (created by LegacyLayerProvider)
    in LegacyLayerProvider (created by DefaultDialog)
    in Portal (created by DefaultDialog)
    in DefaultDialog (created by GeopointInput)
    in div (created by Fieldset)
    in div (created by styled.div)
    in styled.div (created by ElementWithChangeBar)
    in div (created by styled.div)
    in styled.div (created by ElementWithChangeBar)
    in ElementWithChangeBar (created by ChangeBarWrapper)
    in div (created by ChangeBarWrapper)
    in ChangeBarWrapper (created by CoreChangeIndicator)
    in CoreChangeIndicator (created by ContextProvidedChangeIndicator)
    in ContextProvidedChangeIndicator (created by Fieldset)
    in div (created by Fieldset)
    in div (created by Fieldset)
    in fieldset (created by Fieldset)
    in div (created by Fieldset)
    in Fieldset (created by GeopointInput)
    in GeopointInput (created by FormBuilderInputInner)
    in ChangeIndicatorProvider (created by FormBuilderInputInner)
    in div (created by FormBuilderInputInner)
    in FormBuilderInputInner (created by FormBuilderInput)
    in FormBuilderInput (created by ForwardRef(ObjectInputField))
    in ConditionalHiddenField (created by ForwardRef(ObjectInputField))
    in ForwardRef(ObjectInputField) (created by ForwardRef(ObjectInput))
    in ConditionalReadOnlyContextProvider (created by ConditionalReadOnlyField)
    in ConditionalReadOnlyField (created by ForwardRef(ObjectInput))
    in div (created by styled.div)
    in styled.div (created by ForwardRef(Box))
    in ForwardRef(Box) (created by Styled(Component))
    in Styled(Component) (created by ForwardRef(Grid))
    in ForwardRef(Grid) (created by Styled(Component))
    in Styled(Component) (created by FormFieldSet)
    in div (created by styled.div)
    in styled.div (created by ForwardRef(Box))
    in ForwardRef(Box) (created by Styled(Component))
    in Styled(Component) (created by FormFieldSet)
    in fieldset (created by styled.div)
    in styled.div (created by ForwardRef(Box))
    in ForwardRef(Box) (created by Styled(Component))
    in Styled(Component) (created by FormFieldSet)
    in FormFieldSet (created by ForwardRef(ObjectInput))
    in ForwardRef(ObjectInput)
    in ForwardRef(ObjectInput) (created by FormBuilderInputInner)
    in ChangeIndicatorProvider (created by FormBuilderInputInner)
    in div (created by FormBuilderInputInner)
    in FormBuilderInputInner (created by FormBuilderInput)
    in FormBuilderInput (created by ForwardRef(ObjectInputField))
    in ConditionalHiddenField (created by ForwardRef(ObjectInputField))
    in ForwardRef(ObjectInputField) (created by ForwardRef(ObjectInput))
    in ConditionalReadOnlyContextProvider (created by ConditionalReadOnlyField)
    in ConditionalReadOnlyField (created by ForwardRef(ObjectInput))
    in div (created by styled.div)
    in styled.div (created by ForwardRef(Box))
    in ForwardRef(Box) (created by Styled(Component))
    in Styled(Component) (created by ForwardRef(Grid))
    in ForwardRef(Grid) (created by ForwardRef(ObjectInput))
    in ForwardRef(ObjectInput)
    in ForwardRef(ObjectInput) (created by FormBuilderInputInner)
    in ChangeIndicatorProvider (created by FormBuilderInputInner)
    in div (created by FormBuilderInputInner)
    in FormBuilderInputInner (created by FormBuilderInput)
    in FormBuilderInput (created by SanityFormBuilder)
    in ReviewChangesContextProvider (created by SanityFormBuilder)
    in FormBuilderContext (created by SanityFormBuilderContext)
    in SanityFormBuilderContext (created by SanityFormBuilder)
    in SanityFormBuilder (created by FormView)
    in form (created by styled.div)
    in styled.div (created by ForwardRef(Box))
    in ForwardRef(Box) (created by FormView)
    in div (created by ForwardRef(RegionsWithIntersections))
    in div (created by styled.div)
    in styled.div (created by ForwardRef(RegionsWithIntersections))
    in ForwardRef(RegionsWithIntersections) (created by StickyOverlay)
    in StickyOverlay (created by OverlayEnabled)
    in Tracker (created by OverlayEnabled)
    in OverlayEnabled (created by FormView)
    in div (created by styled.div)
    in styled.div (created by ForwardRef(Box))
    in ForwardRef(Box) (created by Styled(Component))
    in Styled(Component) (created by ForwardRef(Container))
    in ForwardRef(Container) (created by FormView)
    in FormView (created by DocumentPanel)
    in div (created by ForwardRef(ScrollContainer))
    in ForwardRef(ScrollContainer) (created by Styled(Component))
    in Styled(Component) (created by DocumentPanel)
    in BoundaryElementProvider (created by DocumentPanel)
    in PortalProvider (created by DocumentPanel)
    in div (created by styled.div)
    in styled.div (created by ForwardRef(Box))
    in ForwardRef(Box) (created by Styled(Component))
    in Styled(Component) (created by ForwardRef(Card))
    in Fe (created by ThemeProvider)
    in ThemeProvider (created by ThemeColorProvider)
    in ThemeColorProvider (created by ForwardRef(Card))
    in ForwardRef(Card) (created by PaneContent__root)
    in PaneContent__root (created by ForwardRef(PaneContent))
    in ForwardRef(PaneContent) (created by DocumentPanel)
    in div (created by styled.div)
    in styled.div (created by ForwardRef(Box))
    in ForwardRef(Box) (created by Styled(Component))
    in Styled(Component) (created by ForwardRef(Flex))
    in ForwardRef(Flex) (created by DocumentPanel)
    in DocumentPanel (created by InnerDocumentPane)
    in div (created by ForwardRef(ScrollContainer))
    in ForwardRef(ScrollContainer) (created by EnabledChangeConnectorRoot)
    in Tracker (created by EnabledChangeConnectorRoot)
    in EnabledChangeConnectorRoot (created by Styled(EnabledChangeConnectorRoot))
    in Styled(EnabledChangeConnectorRoot) (created by InnerDocumentPane)
    in div (created by styled.div)
    in styled.div (created by ForwardRef(Box))
    in ForwardRef(Box) (created by Styled(Component))
    in Styled(Component) (created by ForwardRef(Flex))
    in ForwardRef(Flex) (created by InnerDocumentPane)
    in DialogProvider (created by InnerDocumentPane)
    in div (created by styled.div)
    in styled.div (created by ForwardRef(Box))
    in ForwardRef(Box) (created by Styled(Component))
    in Styled(Component) (created by ForwardRef(Flex))
    in ForwardRef(Flex) (created by ForwardRef(Pane))
    in BoundaryElementProvider (created by ForwardRef(Pane))
    in div (created by styled.div)
    in styled.div (created by ForwardRef(Box))
    in ForwardRef(Box) (created by Styled(Component))
    in Styled(Component) (created by ForwardRef(Card))
    in Fe (created by ThemeProvider)
    in ThemeProvider (created by ThemeColorProvider)
    in ThemeColorProvider (created by ForwardRef(Card))
    in ForwardRef(Card) (created by Styled(Component))
    in Styled(Component) (created by ForwardRef(Pane))
    in LayerProvider (created by LegacyLayerProvider)
    in LegacyLayerProvider (created by ForwardRef(Pane))
    in ForwardRef(Pane) (created by KeyboardShortcutResponder)
    in KeyboardShortcutResponder (created by GetHookCollectionState)
    in GetHookCollectionState (created by RenderActionCollectionState)
    in RenderActionCollectionState (created by DocumentActionShortcuts)
    in DocumentActionShortcuts (created by InnerDocumentPane)
    in InnerDocumentPane (created by DocumentPane)
    in ReferenceInputOptionsProvider (created by DocumentPane)
    in DocumentPaneProvider (created by DocumentPane)
    in DocumentPane (created by DeskToolPane)
    in PaneRouterProvider (created by DeskToolPane)
    in DeskToolPane
    in DeskToolPane (created by DeskTool)
    in div (created by styled.div)
    in styled.div (created by ForwardRef(Box))
    in ForwardRef(Box) (created by Styled(Component))
    in Styled(Component) (created by ForwardRef(Card))
    in Fe (created by ThemeProvider)
    in ThemeProvider (created by ThemeColorProvider)
    in ThemeColorProvider (created by ForwardRef(Card))
    in ForwardRef(Card) (created by Styled(Component))
    in Styled(Component) (created by PaneLayout)
    in PaneLayout (created by Styled(PaneLayout))
    in Styled(PaneLayout) (created by DeskTool)
    in PortalProvider (created by DeskTool)
    in DeskToolProvider (created by DeskTool)
    in DeskTool (created by DeskToolRoot)
    in ErrorBoundary (created by DeskToolRoot)
    in DeskToolRoot (created by RenderTool)
    in ErrorBoundary (created by RenderTool)
    in RenderTool (created by SchemaErrorReporter)
    in RouteScope (created by SchemaErrorReporter)
    in div (created by styled.div)
    in styled.div (created by ForwardRef(Box))
    in ForwardRef(Box) (created by Styled(Component))
    in Styled(Component) (created by ForwardRef(Flex))
    in ForwardRef(Flex) (created by Styled(Component))
    in Styled(Component) (created by SchemaErrorReporter)
    in div (created by styled.div)
    in styled.div (created by ForwardRef(Box))
    in ForwardRef(Box) (created by Styled(Component))
    in Styled(Component) (created by ForwardRef(Flex))
    in ForwardRef(Flex) (created by Styled(Component))
    in Styled(Component) (created by SchemaErrorReporter)
    in div (created by styled.div)
    in styled.div (created by ForwardRef(Box))
    in ForwardRef(Box) (created by Styled(Component))
    in Styled(Component) (created by ForwardRef(Flex))
    in ForwardRef(Flex) (created by Styled(Component))
    in Styled(Component) (created by SchemaErrorReporter)
    in SchemaErrorReporter (created by DefaultLayout)
    in DefaultLayout (created by DefaultLayoutRoot)
    in RouterProvider (created by DefaultLayoutRoot)
    in LoginWrapper (created by NormalizedLoginWrapper)
    in NormalizedLoginWrapper (created by DefaultLayoutRoot)
    in DefaultLayoutRoot (created by AppProvider)
    in div (created by styled.div)
    in styled.div (created by ForwardRef(Box))
    in ForwardRef(Box) (created by Styled(Component))
    in Styled(Component) (created by ForwardRef(Card))
    in Fe (created by ThemeProvider)
    in ThemeProvider (created by ThemeColorProvider)
    in ThemeColorProvider (created by ForwardRef(Card))
    in ForwardRef(Card) (created by Styled(Component))
    in Styled(Component) (created by AppProvider)
    in SnackbarProvider (created by AppProvider)
    in ToastProvider (created by AppProvider)
    in LayerProvider (created by AppProvider)
    in PortalProvider (created by AppProvider)
    in UserColorManagerProvider (created by AppProvider)
    in AppProvider (created by SanityRoot)
    in Fe (created by ThemeProvider)
    in ThemeProvider (created by SanityRoot)
    in ZIndexProvider (created by SanityRoot)
    in SanityRoot
    in AppContainer
Warning: React does not recognize the `isOpen` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `isopen` instead. If you accidentally passed it from a parent component, remove it from the DOM element.
    in div (created by ContainerQuery)
    in ContainerQuery (created by DefaultDialogChildren)
    in DefaultDialogChildren (created by DefaultDialog)
    in LayerProvider (created by LegacyLayerProvider)
    in LegacyLayerProvider (created by DefaultDialog)
    in Portal (created by DefaultDialog)
    in DefaultDialog (created by GeopointInput)
    in div (created by Fieldset)
    in div (created by styled.div)
    in styled.div (created by ElementWithChangeBar)
    in div (created by styled.div)
    in styled.div (created by ElementWithChangeBar)
    in ElementWithChangeBar (created by ChangeBarWrapper)
    in div (created by ChangeBarWrapper)
    in ChangeBarWrapper (created by CoreChangeIndicator)
    in CoreChangeIndicator (created by ContextProvidedChangeIndicator)
    in ContextProvidedChangeIndicator (created by Fieldset)
    in div (created by Fieldset)
    in div (created by Fieldset)
    in fieldset (created by Fieldset)
    in div (created by Fieldset)
    in Fieldset (created by GeopointInput)
    in GeopointInput (created by FormBuilderInputInner)
    in ChangeIndicatorProvider (created by FormBuilderInputInner)
    in div (created by FormBuilderInputInner)
    in FormBuilderInputInner (created by FormBuilderInput)
    in FormBuilderInput (created by ForwardRef(ObjectInputField))
    in ConditionalHiddenField (created by ForwardRef(ObjectInputField))
    in ForwardRef(ObjectInputField) (created by ForwardRef(ObjectInput))
    in ConditionalReadOnlyContextProvider (created by ConditionalReadOnlyField)
    in ConditionalReadOnlyField (created by ForwardRef(ObjectInput))
    in div (created by styled.div)
    in styled.div (created by ForwardRef(Box))
    in ForwardRef(Box) (created by Styled(Component))
    in Styled(Component) (created by ForwardRef(Grid))
    in ForwardRef(Grid) (created by Styled(Component))
    in Styled(Component) (created by FormFieldSet)
    in div (created by styled.div)
    in styled.div (created by ForwardRef(Box))
    in ForwardRef(Box) (created by Styled(Component))
    in Styled(Component) (created by FormFieldSet)
    in fieldset (created by styled.div)
    in styled.div (created by ForwardRef(Box))
    in ForwardRef(Box) (created by Styled(Component))
    in Styled(Component) (created by FormFieldSet)
    in FormFieldSet (created by ForwardRef(ObjectInput))
    in ForwardRef(ObjectInput)
    in ForwardRef(ObjectInput) (created by FormBuilderInputInner)
    in ChangeIndicatorProvider (created by FormBuilderInputInner)
    in div (created by FormBuilderInputInner)
    in FormBuilderInputInner (created by FormBuilderInput)
    in FormBuilderInput (created by ForwardRef(ObjectInputField))
    in ConditionalHiddenField (created by ForwardRef(ObjectInputField))
    in ForwardRef(ObjectInputField) (created by ForwardRef(ObjectInput))
    in ConditionalReadOnlyContextProvider (created by ConditionalReadOnlyField)
    in ConditionalReadOnlyField (created by ForwardRef(ObjectInput))
    in div (created by styled.div)
    in styled.div (created by ForwardRef(Box))
    in ForwardRef(Box) (created by Styled(Component))
    in Styled(Component) (created by ForwardRef(Grid))
    in ForwardRef(Grid) (created by ForwardRef(ObjectInput))
    in ForwardRef(ObjectInput)
    in ForwardRef(ObjectInput) (created by FormBuilderInputInner)
    in ChangeIndicatorProvider (created by FormBuilderInputInner)
    in div (created by FormBuilderInputInner)
    in FormBuilderInputInner (created by FormBuilderInput)
    in FormBuilderInput (created by SanityFormBuilder)
    in ReviewChangesContextProvider (created by SanityFormBuilder)
    in FormBuilderContext (created by SanityFormBuilderContext)
    in SanityFormBuilderContext (created by SanityFormBuilder)
    in SanityFormBuilder (created by FormView)
    in form (created by styled.div)
    in styled.div (created by ForwardRef(Box))
    in ForwardRef(Box) (created by FormView)
    in div (created by ForwardRef(RegionsWithIntersections))
    in div (created by styled.div)
    in styled.div (created by ForwardRef(RegionsWithIntersections))
    in ForwardRef(RegionsWithIntersections) (created by StickyOverlay)
    in StickyOverlay (created by OverlayEnabled)
    in Tracker (created by OverlayEnabled)
    in OverlayEnabled (created by FormView)
    in div (created by styled.div)
    in styled.div (created by ForwardRef(Box))
    in ForwardRef(Box) (created by Styled(Component))
    in Styled(Component) (created by ForwardRef(Container))
    in ForwardRef(Container) (created by FormView)
    in FormView (created by DocumentPanel)
    in div (created by ForwardRef(ScrollContainer))
    in ForwardRef(ScrollContainer) (created by Styled(Component))
    in Styled(Component) (created by DocumentPanel)
    in BoundaryElementProvider (created by DocumentPanel)
    in PortalProvider (created by DocumentPanel)
    in div (created by styled.div)
    in styled.div (created by ForwardRef(Box))
    in ForwardRef(Box) (created by Styled(Component))
    in Styled(Component) (created by ForwardRef(Card))
    in Fe (created by ThemeProvider)
    in ThemeProvider (created by ThemeColorProvider)
    in ThemeColorProvider (created by ForwardRef(Card))
    in ForwardRef(Card) (created by PaneContent__root)
    in PaneContent__root (created by ForwardRef(PaneContent))
    in ForwardRef(PaneContent) (created by DocumentPanel)
    in div (created by styled.div)
    in styled.div (created by ForwardRef(Box))
    in ForwardRef(Box) (created by Styled(Component))
    in Styled(Component) (created by ForwardRef(Flex))
    in ForwardRef(Flex) (created by DocumentPanel)
    in DocumentPanel (created by InnerDocumentPane)
    in div (created by ForwardRef(ScrollContainer))
    in ForwardRef(ScrollContainer) (created by EnabledChangeConnectorRoot)
    in Tracker (created by EnabledChangeConnectorRoot)
    in EnabledChangeConnectorRoot (created by Styled(EnabledChangeConnectorRoot))
    in Styled(EnabledChangeConnectorRoot) (created by InnerDocumentPane)
    in div (created by styled.div)
    in styled.div (created by ForwardRef(Box))
    in ForwardRef(Box) (created by Styled(Component))
    in Styled(Component) (created by ForwardRef(Flex))
    in ForwardRef(Flex) (created by InnerDocumentPane)
    in DialogProvider (created by InnerDocumentPane)
    in div (created by styled.div)
    in styled.div (created by ForwardRef(Box))
    in ForwardRef(Box) (created by Styled(Component))
    in Styled(Component) (created by ForwardRef(Flex))
    in ForwardRef(Flex) (created by ForwardRef(Pane))
    in BoundaryElementProvider (created by ForwardRef(Pane))
    in div (created by styled.div)
    in styled.div (created by ForwardRef(Box))
    in ForwardRef(Box) (created by Styled(Component))
    in Styled(Component) (created by ForwardRef(Card))
    in Fe (created by ThemeProvider)
    in ThemeProvider (created by ThemeColorProvider)
    in ThemeColorProvider (created by ForwardRef(Card))
    in ForwardRef(Card) (created by Styled(Component))
    in Styled(Component) (created by ForwardRef(Pane))
    in LayerProvider (created by LegacyLayerProvider)
    in LegacyLayerProvider (created by ForwardRef(Pane))
    in ForwardRef(Pane) (created by KeyboardShortcutResponder)
    in KeyboardShortcutResponder (created by GetHookCollectionState)
    in GetHookCollectionState (created by RenderActionCollectionState)
    in RenderActionCollectionState (created by DocumentActionShortcuts)
    in DocumentActionShortcuts (created by InnerDocumentPane)
    in InnerDocumentPane (created by DocumentPane)
    in ReferenceInputOptionsProvider (created by DocumentPane)
    in DocumentPaneProvider (created by DocumentPane)
    in DocumentPane (created by DeskToolPane)
    in PaneRouterProvider (created by DeskToolPane)
    in DeskToolPane
    in DeskToolPane (created by DeskTool)
    in div (created by styled.div)
    in styled.div (created by ForwardRef(Box))
    in ForwardRef(Box) (created by Styled(Component))
    in Styled(Component) (created by ForwardRef(Card))
    in Fe (created by ThemeProvider)
    in ThemeProvider (created by ThemeColorProvider)
    in ThemeColorProvider (created by ForwardRef(Card))
    in ForwardRef(Card) (created by Styled(Component))
    in Styled(Component) (created by PaneLayout)
    in PaneLayout (created by Styled(PaneLayout))
    in Styled(PaneLayout) (created by DeskTool)
    in PortalProvider (created by DeskTool)
    in DeskToolProvider (created by DeskTool)
    in DeskTool (created by DeskToolRoot)
    in ErrorBoundary (created by DeskToolRoot)
    in DeskToolRoot (created by RenderTool)
    in ErrorBoundary (created by RenderTool)
    in RenderTool (created by SchemaErrorReporter)
    in RouteScope (created by SchemaErrorReporter)
    in div (created by styled.div)
    in styled.div (created by ForwardRef(Box))
    in ForwardRef(Box) (created by Styled(Component))
    in Styled(Component) (created by ForwardRef(Flex))
    in ForwardRef(Flex) (created by Styled(Component))
    in Styled(Component) (created by SchemaErrorReporter)
    in div (created by styled.div)
    in styled.div (created by ForwardRef(Box))
    in ForwardRef(Box) (created by Styled(Component))
    in Styled(Component) (created by ForwardRef(Flex))
    in ForwardRef(Flex) (created by Styled(Component))
    in Styled(Component) (created by SchemaErrorReporter)
    in div (created by styled.div)
    in styled.div (created by ForwardRef(Box))
    in ForwardRef(Box) (created by Styled(Component))
    in Styled(Component) (created by ForwardRef(Flex))
    in ForwardRef(Flex) (created by Styled(Component))
    in Styled(Component) (created by SchemaErrorReporter)
    in SchemaErrorReporter (created by DefaultLayout)
    in DefaultLayout (created by DefaultLayoutRoot)
    in RouterProvider (created by DefaultLayoutRoot)
    in LoginWrapper (created by NormalizedLoginWrapper)
    in NormalizedLoginWrapper (created by DefaultLayoutRoot)
    in DefaultLayoutRoot (created by AppProvider)
    in div (created by styled.div)
    in styled.div (created by ForwardRef(Box))
    in ForwardRef(Box) (created by Styled(Component))
    in Styled(Component) (created by ForwardRef(Card))
    in Fe (created by ThemeProvider)
    in ThemeProvider (created by ThemeColorProvider)
    in ThemeColorProvider (created by ForwardRef(Card))
    in ForwardRef(Card) (created by Styled(Component))
    in Styled(Component) (created by AppProvider)
    in SnackbarProvider (created by AppProvider)
    in ToastProvider (created by AppProvider)
    in LayerProvider (created by AppProvider)
    in PortalProvider (created by AppProvider)
    in UserColorManagerProvider (created by AppProvider)
    in AppProvider (created by SanityRoot)
    in Fe (created by ThemeProvider)
    in ThemeProvider (created by SanityRoot)
    in ZIndexProvider (created by SanityRoot)
    in SanityRoot
    in AppContainer
ErrorHandler.js:50 TypeError: e._addMarker is not a function
    at on.addTo (mapbox-gl.js:35:1)
    at MapboxGeocoder._handleMarker (index.js:981:1)
    at MapboxGeocoder._onChange (index.js:385:1)
    at Suggestions.value (suggestions.js:182:1)
    at List.handleMouseUp (list.js:84:1)
    at List.<anonymous> (list.js:78:1)
(anonymous) @ ErrorHandler.js:50
Suggestions.value @ suggestions.js:182
List.handleMouseUp @ list.js:84
(anonymous) @ list.js:78
Uncaught TypeError: e._addMarker is not a function
    at on.addTo (mapbox-gl.js:35:1)
    at MapboxGeocoder._handleMarker (index.js:981:1)
    at MapboxGeocoder._onChange (index.js:385:1)
    at Suggestions.value (suggestions.js:182:1)
    at List.handleMouseUp (list.js:84:1)
    at List.<anonymous> (list.js:78:1)
@mysterybear
Copy link
Author

mysterybear commented Nov 24, 2022

Here's version in yarn.lock:

sanity-plugin-mapbox-input@^0.0.3:
  version "0.0.3"
  resolved "https://registry.npmjs.org/sanity-plugin-mapbox-input/-/sanity-plugin-mapbox-input-0.0.3.tgz#478d2a587e2186bd56de4bee10fd1d6c65129ed5"
  integrity sha512-+83+GnIwgmqXIBvs70IwMpA1b8j6LyERTEAtV4CUI++Ymk85OFgN1xWQkNjOlgBkuYp3QMkr3CWMFlYw0KsPAg==
  dependencies:
    lodash "^4.17.4"
    prop-types "^15.6.0"
    react-map-gl "^5.0.9"
    react-map-gl-geocoder "^2.0.9"

Here's config file config/mapbox-input.json with apiKey obscured:

{
  "apiKey": "[obscured]",
  "defaultZoom": 11,
  "defaultLocation": {
    "lat": 40.7058254,
    "lng": -74.1180863
  }
}

@mysterybear
Copy link
Author

Ah I think it might've been because we made a custom component using Mapbox for something else and so had mapbox-gl installed as ^2.x whereas this requires pinning at v1...

Wonder if supporting the latest mapbox-gl would be considered in this repo?

@Grsmto
Copy link
Owner

Grsmto commented Nov 25, 2022

It doesn't seem like the plugin is working anymore for some reason. It seems like some dependency issue as you said between react-map-gl and mapbox-gl and Sanity Studio that doesn't seem to support ES6 modules. Not sure how to solve this :/

@mysterybear
Copy link
Author

@Grsmto pinning mapbox-gl to ^1.0.0 worked for us... Still a lot of stuff in the console but the thing does what it needs to do... Whether our other component that was written with mapbox 2 still works, I haven't had time to look at yet as it's not so important for us 😅

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

2 participants