hierarchical-document-list icon indicating copy to clipboard operation
hierarchical-document-list copied to clipboard

React warning on opening hierarchical-document-list in browser console

Open apokaliptis opened this issue 1 year ago • 0 comments

Describe the bug

React warning level error on opening hierarchical-document-list in browser console:

Warning: Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?

Check the render method of `UserComponentPane`.
div
O2@http://localhost:3333/node_modules/.sanity/vite/deps/chunk-KTXG2ZXI.js?v=84435e5d:31145:6
Box<@http://localhost:3333/node_modules/.sanity/vite/deps/chunk-KTXG2ZXI.js?v=84435e5d:42456:7
O2@http://localhost:3333/node_modules/.sanity/vite/deps/chunk-KTXG2ZXI.js?v=84435e5d:31145:6
UserComponentPaneContent@http://localhost:3333/node_modules/.sanity/vite/deps/index-pIqlMpni-5ND6P5H7.js?v=84435e5d:54:7
div
O2@http://localhost:3333/node_modules/.sanity/vite/deps/chunk-KTXG2ZXI.js?v=84435e5d:31145:6
Box<@http://localhost:3333/node_modules/.sanity/vite/deps/chunk-KTXG2ZXI.js?v=84435e5d:42456:7
O2@http://localhost:3333/node_modules/.sanity/vite/deps/chunk-KTXG2ZXI.js?v=84435e5d:31145:6
Flex<@http://localhost:3333/node_modules/.sanity/vite/deps/chunk-KTXG2ZXI.js?v=84435e5d:42642:85
BoundaryElementProvider@http://localhost:3333/node_modules/.sanity/vite/deps/chunk-KTXG2ZXI.js?v=84435e5d:43689:33
div
O2@http://localhost:3333/node_modules/.sanity/vite/deps/chunk-KTXG2ZXI.js?v=84435e5d:31145:6
Box<@http://localhost:3333/node_modules/.sanity/vite/deps/chunk-KTXG2ZXI.js?v=84435e5d:42456:7
O2@http://localhost:3333/node_modules/.sanity/vite/deps/chunk-KTXG2ZXI.js?v=84435e5d:31145:6
tt@http://localhost:3333/node_modules/.sanity/vite/deps/chunk-KTXG2ZXI.js?v=84435e5d:31085:32
ThemeProvider@http://localhost:3333/node_modules/.sanity/vite/deps/chunk-KTXG2ZXI.js?v=84435e5d:41341:53
ThemeColorProvider@http://localhost:3333/node_modules/.sanity/vite/deps/chunk-KTXG2ZXI.js?v=84435e5d:41361:38
Card<@http://localhost:3333/node_modules/.sanity/vite/deps/chunk-KTXG2ZXI.js?v=84435e5d:43074:7
O2@http://localhost:3333/node_modules/.sanity/vite/deps/chunk-KTXG2ZXI.js?v=84435e5d:31145:6
LayerProvider@http://localhost:3333/node_modules/.sanity/vite/deps/chunk-KTXG2ZXI.js?v=84435e5d:43868:50
LegacyLayerProvider@http://localhost:3333/node_modules/.sanity/vite/deps/chunk-VXZWTXXD.js?v=84435e5d:104977:43
Pane2@http://localhost:3333/node_modules/.sanity/vite/deps/chunk-DVB2AI7Q.js?v=84435e5d:2034:204
UserComponentPane@http://localhost:3333/node_modules/.sanity/vite/deps/index-pIqlMpni-5ND6P5H7.js?v=84435e5d:103:7
Suspense
PaneRouterProvider@http://localhost:3333/node_modules/.sanity/vite/deps/index-Bn6gWj4A-BO5HHXBB.js?v=84435e5d:121:7
StructureToolPane2@http://localhost:3333/node_modules/.sanity/vite/deps/index-Bn6gWj4A-BO5HHXBB.js?v=84435e5d:1108:7
div
O2@http://localhost:3333/node_modules/.sanity/vite/deps/chunk-KTXG2ZXI.js?v=84435e5d:31145:6
Box<@http://localhost:3333/node_modules/.sanity/vite/deps/chunk-KTXG2ZXI.js?v=84435e5d:42456:7
O2@http://localhost:3333/node_modules/.sanity/vite/deps/chunk-KTXG2ZXI.js?v=84435e5d:31145:6
tt@http://localhost:3333/node_modules/.sanity/vite/deps/chunk-KTXG2ZXI.js?v=84435e5d:31085:32
ThemeProvider@http://localhost:3333/node_modules/.sanity/vite/deps/chunk-KTXG2ZXI.js?v=84435e5d:41341:53
ThemeColorProvider@http://localhost:3333/node_modules/.sanity/vite/deps/chunk-KTXG2ZXI.js?v=84435e5d:41361:38
Card<@http://localhost:3333/node_modules/.sanity/vite/deps/chunk-KTXG2ZXI.js?v=84435e5d:43074:7
O2@http://localhost:3333/node_modules/.sanity/vite/deps/chunk-KTXG2ZXI.js?v=84435e5d:31145:6
PaneLayout@http://localhost:3333/node_modules/.sanity/vite/deps/chunk-DVB2AI7Q.js?v=84435e5d:2497:70
O2@http://localhost:3333/node_modules/.sanity/vite/deps/chunk-KTXG2ZXI.js?v=84435e5d:31145:6
PortalProvider@http://localhost:3333/node_modules/.sanity/vite/deps/chunk-KTXG2ZXI.js?v=84435e5d:43965:85
StructureTool2@http://localhost:3333/node_modules/.sanity/vite/deps/index-Bn6gWj4A-BO5HHXBB.js?v=84435e5d:1301:7
StructureToolProvider@http://localhost:3333/node_modules/.sanity/vite/deps/chunk-DVB2AI7Q.js?v=84435e5d:11407:72
SourceProvider@http://localhost:3333/node_modules/.sanity/vite/deps/chunk-VXZWTXXD.js?v=84435e5d:99921:33
ErrorBoundary@http://localhost:3333/node_modules/.sanity/vite/deps/chunk-KTXG2ZXI.js?v=84435e5d:43751:5
StructureToolBoundary@http://localhost:3333/node_modules/.sanity/vite/deps/index-Bn6gWj4A-BO5HHXBB.js?v=84435e5d:1408:7
StudioActiveToolLayout@http://localhost:3333/node_modules/.sanity/vite/deps/chunk-VXZWTXXD.js?v=84435e5d:102598:26
TasksStudioActiveToolLayout@http://localhost:3333/node_modules/.sanity/vite/deps/chunk-DVB2AI7Q.js?v=84435e5d:10969:23
Suspense
RouteScope@http://localhost:3333/node_modules/.sanity/vite/deps/chunk-VXZWTXXD.js?v=84435e5d:64532:7
div
O2@http://localhost:3333/node_modules/.sanity/vite/deps/chunk-KTXG2ZXI.js?v=84435e5d:31145:6
Box<@http://localhost:3333/node_modules/.sanity/vite/deps/chunk-KTXG2ZXI.js?v=84435e5d:42456:7
O2@http://localhost:3333/node_modules/.sanity/vite/deps/chunk-KTXG2ZXI.js?v=84435e5d:31145:6
tt@http://localhost:3333/node_modules/.sanity/vite/deps/chunk-KTXG2ZXI.js?v=84435e5d:31085:32
ThemeProvider@http://localhost:3333/node_modules/.sanity/vite/deps/chunk-KTXG2ZXI.js?v=84435e5d:41341:53
ThemeColorProvider@http://localhost:3333/node_modules/.sanity/vite/deps/chunk-KTXG2ZXI.js?v=84435e5d:41361:38
Card<@http://localhost:3333/node_modules/.sanity/vite/deps/chunk-KTXG2ZXI.js?v=84435e5d:43074:7
ErrorBoundary@http://localhost:3333/node_modules/.sanity/vite/deps/chunk-KTXG2ZXI.js?v=84435e5d:43751:5
StudioErrorBoundary@http://localhost:3333/node_modules/.sanity/vite/deps/chunk-VXZWTXXD.js?v=84435e5d:102861:52
div
O2@http://localhost:3333/node_modules/.sanity/vite/deps/chunk-KTXG2ZXI.js?v=84435e5d:31145:6
Box<@http://localhost:3333/node_modules/.sanity/vite/deps/chunk-KTXG2ZXI.js?v=84435e5d:42456:7
O2@http://localhost:3333/node_modules/.sanity/vite/deps/chunk-KTXG2ZXI.js?v=84435e5d:31145:6
Flex<@http://localhost:3333/node_modules/.sanity/vite/deps/chunk-KTXG2ZXI.js?v=84435e5d:42642:85
StudioLayoutComponent@http://localhost:3333/node_modules/.sanity/vite/deps/chunk-VXZWTXXD.js?v=84435e5d:102890:34
TasksStudioLayoutInner@http://localhost:3333/node_modules/.sanity/vite/deps/chunk-DVB2AI7Q.js?v=84435e5d:10976:23
TasksEnabledProvider@http://localhost:3333/node_modules/.sanity/vite/deps/chunk-DVB2AI7Q.js?v=84435e5d:9642:22
TasksStudioLayout
ConditionalWrapper@http://localhost:3333/node_modules/.sanity/vite/deps/chunk-VXZWTXXD.js?v=84435e5d:28772:7
CommentsOnboardingProvider@http://localhost:3333/node_modules/.sanity/vite/deps/chunk-DVB2AI7Q.js?v=84435e5d:1647:24
AddonDatasetProvider@http://localhost:3333/node_modules/.sanity/vite/deps/chunk-VXZWTXXD.js?v=84435e5d:106748:7
CommentsStudioLayout@http://localhost:3333/node_modules/.sanity/vite/deps/chunk-DVB2AI7Q.js?v=84435e5d:5158:51
StudioLayout@http://localhost:3333/node_modules/.sanity/vite/deps/chunk-VXZWTXXD.js?v=84435e5d:102885:19
ResourceCacheProvider@http://localhost:3333/node_modules/.sanity/vite/deps/chunk-VXZWTXXD.js?v=84435e5d:98358:22
I18nextProvider@http://localhost:3333/node_modules/.sanity/vite/deps/chunk-VXZWTXXD.js?v=84435e5d:28749:7
Suspense
LocaleProviderBase@http://localhost:3333/node_modules/.sanity/vite/deps/chunk-VXZWTXXD.js?v=84435e5d:81175:71
LocaleProvider@http://localhost:3333/node_modules/.sanity/vite/deps/chunk-VXZWTXXD.js?v=84435e5d:81171:95
TelemetryProvider@http://localhost:3333/node_modules/.sanity/vite/deps/chunk-VXZWTXXD.js?v=84435e5d:71936:7
StudioTelemetryProvider@http://localhost:3333/node_modules/.sanity/vite/deps/chunk-VXZWTXXD.js?v=84435e5d:103991:27
RouterProvider@http://localhost:3333/node_modules/.sanity/vite/deps/chunk-VXZWTXXD.js?v=84435e5d:64482:7
WorkspaceRouterProvider@http://localhost:3333/node_modules/.sanity/vite/deps/chunk-VXZWTXXD.js?v=84435e5d:104169:51
SourceProvider@http://localhost:3333/node_modules/.sanity/vite/deps/chunk-VXZWTXXD.js?v=84435e5d:99921:33
WorkspaceProvider@http://localhost:3333/node_modules/.sanity/vite/deps/chunk-VXZWTXXD.js?v=84435e5d:87795:33
WorkspaceLoader@http://localhost:3333/node_modules/.sanity/vite/deps/chunk-VXZWTXXD.js?v=84435e5d:104267:40
ErrorBoundary@http://localhost:3333/node_modules/.sanity/vite/deps/chunk-KTXG2ZXI.js?v=84435e5d:43751:5
WorkspaceLoaderBoundary@http://localhost:3333/node_modules/.sanity/vite/deps/chunk-VXZWTXXD.js?v=84435e5d:104275:46
AuthBoundary@http://localhost:3333/node_modules/.sanity/vite/deps/chunk-VXZWTXXD.js?v=84435e5d:103956:151
UserColorManagerProvider@http://localhost:3333/node_modules/.sanity/vite/deps/chunk-VXZWTXXD.js?v=84435e5d:82189:49
LayerProvider@http://localhost:3333/node_modules/.sanity/vite/deps/chunk-KTXG2ZXI.js?v=84435e5d:43868:50
tt@http://localhost:3333/node_modules/.sanity/vite/deps/chunk-KTXG2ZXI.js?v=84435e5d:31085:32
ThemeProvider@http://localhost:3333/node_modules/.sanity/vite/deps/chunk-KTXG2ZXI.js?v=84435e5d:41341:53
StudioThemeProvider@http://localhost:3333/node_modules/.sanity/vite/deps/chunk-VXZWTXXD.js?v=84435e5d:104020:22
RouterHistoryProvider@http://localhost:3333/node_modules/.sanity/vite/deps/chunk-VXZWTXXD.js?v=84435e5d:100939:41
ActiveWorkspaceMatcherContextProvider@http://localhost:3333/node_modules/.sanity/vite/deps/chunk-VXZWTXXD.js?v=84435e5d:100950:78
ActiveWorkspaceMatcher@http://localhost:3333/node_modules/.sanity/vite/deps/chunk-VXZWTXXD.js?v=84435e5d:101035:90
WorkspacesProvider@http://localhost:3333/node_modules/.sanity/vite/deps/chunk-VXZWTXXD.js?v=84435e5d:100933:40
ErrorBoundary@http://localhost:3333/node_modules/.sanity/vite/deps/chunk-KTXG2ZXI.js?v=84435e5d:43751:5
StudioErrorBoundary@http://localhost:3333/node_modules/.sanity/vite/deps/chunk-VXZWTXXD.js?v=84435e5d:102861:52
ToastProvider@http://localhost:3333/node_modules/.sanity/vite/deps/chunk-KTXG2ZXI.js?v=84435e5d:47215:66
tt@http://localhost:3333/node_modules/.sanity/vite/deps/chunk-KTXG2ZXI.js?v=84435e5d:31085:32
ThemeProvider@http://localhost:3333/node_modules/.sanity/vite/deps/chunk-KTXG2ZXI.js?v=84435e5d:41341:53
ColorThemeProvider@http://localhost:3333/node_modules/.sanity/vite/deps/chunk-VXZWTXXD.js?v=84435e5d:101078:39
ColorSchemeLocalStorageProvider@http://localhost:3333/node_modules/.sanity/vite/deps/chunk-VXZWTXXD.js?v=84435e5d:101092:38
ColorSchemeProvider@http://localhost:3333/node_modules/.sanity/vite/deps/chunk-VXZWTXXD.js?v=84435e5d:101085:58
StudioProvider@http://localhost:3333/node_modules/.sanity/vite/deps/chunk-VXZWTXXD.js?v=84435e5d:104287:133
Studio@http://localhost:3333/node_modules/.sanity/vite/deps/chunk-VXZWTXXD.js?v=84435e5d:107709:7
[react-dom.development.js:86:29](http://localhost:3333/node_modules/react-dom/cjs/react-dom.development.js)

To Reproduce

Steps to reproduce the behavior:

  1. Install hierarchical-document-list and add it to your structure following installation steps
  2. Run sanity dev (npm run dev) and in your browser, open the new structure page added to Sanity
  3. See error in browser console.

Expected behavior

For Sanity and the plugin to run error free.

Which versions of Sanity are you using?

@sanity/cli (global)                3.34.0 (up to date)
@sanity/eslint-config-studio         3.0.1 (up to date)
@sanity/hierarchical-document-list   2.0.0 (up to date)
@sanity/icons                       2.11.2 (up to date)
@sanity/ui                          2.0.10 (up to date)
@sanity/vision                      3.34.0 (up to date)
sanity                              3.34.0 (up to date)

What operating system are you using?

Windows 11

Which versions of Node.js / npm are you running?

Node v21.7.0 NPM 9.1.2

apokaliptis avatar Mar 18 '24 16:03 apokaliptis