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

Invalid prop 'children' #2797

Open
0xJem opened this issue May 4, 2023 · 3 comments
Open

Invalid prop 'children' #2797

0xJem opened this issue May 4, 2023 · 3 comments

Comments

@0xJem
Copy link
Contributor

0xJem commented May 4, 2023

Warning in the console:

rning: Failed prop type: Invalid prop children supplied to ForwardRef(Modal2). Expected an element that can hold a ref. Did you accidentally use a plain function component for an element instead? For more information see https://mui.com/r/caveat-with-refs-guide

@0xJem
Copy link
Contributor Author

0xJem commented Sep 14, 2023

Warning: Failed prop type: Invalid prop `children` supplied to `ForwardRef(Modal2)`. Expected an element that can hold a ref. Did you accidentally use a plain function component for an element instead? For more information see https://mui.com/r/caveat-with-refs-guide
    at Modal2 (http://localhost:5173/node_modules/.vite/deps/chunk-ICBGAVFH.js?v=7749c979:5510:21)
    at http://localhost:5173/node_modules/.vite/deps/chunk-2ZT4K5BH.js?v=7749c979:1493:50
    at exports.Modal (http://localhost:5173/node_modules/.vite/deps/@olympusdao_component-library.js?v=7749c979:1774:19)
    at ExpandedChart (http://localhost:5173/src/components/Chart/ExpandedChart.tsx?t=1694683299734:24:3)
    at div
    at http://localhost:5173/node_modules/.vite/deps/chunk-2ZT4K5BH.js?v=7749c979:1493:50
    at Grid2 (http://localhost:5173/node_modules/.vite/deps/chunk-SVVHYQRU.js?v=7749c979:7243:26)
    at div
    at http://localhost:5173/node_modules/.vite/deps/chunk-2ZT4K5BH.js?v=7749c979:1493:50
    at Grid2 (http://localhost:5173/node_modules/.vite/deps/chunk-SVVHYQRU.js?v=7749c979:7243:26)
    at div
    at http://localhost:5173/node_modules/.vite/deps/chunk-2ZT4K5BH.js?v=7749c979:1493:50
    at Grid2 (http://localhost:5173/node_modules/.vite/deps/chunk-SVVHYQRU.js?v=7749c979:7243:26)
    at ChartCard (http://localhost:5173/src/views/TreasuryDashboard/components/Graph/ChartCard.tsx:27:122)
    at Chart (http://localhost:5173/src/components/Chart/Chart.tsx:599:3)
    at LiquidBackingPerOhmComparisonGraph (http://localhost:5173/src/views/TreasuryDashboard/components/Graph/LiquidBackingComparisonGraph.tsx?t=1694682921342:28:3)
    at div
    at http://localhost:5173/node_modules/.vite/deps/chunk-2ZT4K5BH.js?v=7749c979:1493:50
    at Grid2 (http://localhost:5173/node_modules/.vite/deps/chunk-SVVHYQRU.js?v=7749c979:7243:26)
    at div
    at http://localhost:5173/node_modules/.vite/deps/chunk-2ZT4K5BH.js?v=7749c979:1493:50
    at Grid2 (http://localhost:5173/node_modules/.vite/deps/chunk-SVVHYQRU.js?v=7749c979:7243:26)
    at div
    at http://localhost:5173/node_modules/.vite/deps/chunk-2ZT4K5BH.js?v=7749c979:1493:50
    at Paper2 (http://localhost:5173/node_modules/.vite/deps/chunk-J3CP2M3Q.js?v=7749c979:147:21)
    at http://localhost:5173/node_modules/.vite/deps/chunk-2ZT4K5BH.js?v=7749c979:1493:50
    at Transition2 (http://localhost:5173/node_modules/.vite/deps/chunk-TFNPEYFL.js?v=7749c979:260:34)
    at Zoom2 (http://localhost:5173/node_modules/.vite/deps/chunk-SVVHYQRU.js?v=7749c979:14700:21)
    at J (http://localhost:5173/node_modules/.vite/deps/@olympusdao_component-library.js?v=7749c979:187:25)
    at div
    at http://localhost:5173/node_modules/.vite/deps/chunk-2ZT4K5BH.js?v=7749c979:1493:50
    at Grid2 (http://localhost:5173/node_modules/.vite/deps/chunk-SVVHYQRU.js?v=7749c979:7243:26)
    at div
    at http://localhost:5173/node_modules/.vite/deps/chunk-2ZT4K5BH.js?v=7749c979:1493:50
    at Grid2 (http://localhost:5173/node_modules/.vite/deps/chunk-SVVHYQRU.js?v=7749c979:7243:26)
    at MetricsDashboard (http://localhost:5173/src/views/TreasuryDashboard/TreasuryDashboard.tsx:40:37)
    at div
    at http://localhost:5173/node_modules/.vite/deps/chunk-2ZT4K5BH.js?v=7749c979:1493:50
    at Box3 (http://localhost:5173/node_modules/.vite/deps/chunk-2ZT4K5BH.js?v=7749c979:4980:19)
    at RenderedRoute (http://localhost:5173/node_modules/.vite/deps/chunk-AQ4QEL5T.js?v=7749c979:3060:5)
    at Outlet (http://localhost:5173/node_modules/.vite/deps/chunk-AQ4QEL5T.js?v=7749c979:3388:26)
    at div
    at http://localhost:5173/node_modules/.vite/deps/chunk-2ZT4K5BH.js?v=7749c979:1493:50
    at Container3 (http://localhost:5173/node_modules/.vite/deps/chunk-2ZT4K5BH.js?v=7749c979:6660:19)
    at PageWrapper (http://localhost:5173/src/views/TreasuryDashboard/TreasuryDashboard.tsx:316:25)
    at RenderedRoute (http://localhost:5173/node_modules/.vite/deps/chunk-AQ4QEL5T.js?v=7749c979:3060:5)
    at Routes (http://localhost:5173/node_modules/.vite/deps/chunk-AQ4QEL5T.js?v=7749c979:3448:5)
    at TreasuryDashboard
    at RenderedRoute (http://localhost:5173/node_modules/.vite/deps/chunk-AQ4QEL5T.js?v=7749c979:3060:5)
    at Routes (http://localhost:5173/node_modules/.vite/deps/chunk-AQ4QEL5T.js?v=7749c979:3448:5)
    at Suspense
    at div
    at div
    at ThemeProvider2 (http://localhost:5173/node_modules/.vite/deps/chunk-2ZT4K5BH.js?v=7749c979:5657:5)
    at ThemeProvider3 (http://localhost:5173/node_modules/.vite/deps/chunk-2ZT4K5BH.js?v=7749c979:5750:5)
    at ThemeProvider (http://localhost:5173/node_modules/.vite/deps/chunk-JTHZMMNC.js?v=7749c979:342:12)
    at div
    at ModalProvider (http://localhost:5173/node_modules/.vite/deps/@rainbow-me_rainbowkit.js?v=7749c979:7824:26)
    at TransactionStoreProvider (http://localhost:5173/node_modules/.vite/deps/@rainbow-me_rainbowkit.js?v=7749c979:4330:3)
    at RainbowKitChainProvider (http://localhost:5173/node_modules/.vite/deps/@rainbow-me_rainbowkit.js?v=7749c979:4152:3)
    at RainbowKitProvider (http://localhost:5173/node_modules/.vite/deps/@rainbow-me_rainbowkit.js?v=7749c979:4954:3)
    at div
    at http://localhost:5173/node_modules/.vite/deps/chunk-2ZT4K5BH.js?v=7749c979:1493:50
    at App (http://localhost:5173/src/App.tsx:118:3)
    at StyledEngineProvider (http://localhost:5173/node_modules/.vite/deps/chunk-2ZT4K5BH.js?v=7749c979:3126:5)
    at Router (http://localhost:5173/node_modules/.vite/deps/chunk-AQ4QEL5T.js?v=7749c979:3395:15)
    at HashRouter (http://localhost:5173/node_modules/.vite/deps/chunk-YQU6SJAB.js?v=7749c979:368:5)
    at Provider (http://localhost:5173/node_modules/.vite/deps/react-redux.js?v=7749c979:814:3)
    at QueryClientProvider (http://localhost:5173/node_modules/.vite/deps/chunk-SWPLUQVK.js?v=7749c979:2732:3)
    at ReactQueryProvider (http://localhost:5173/src/lib/react-query.tsx:42:3)
    at QueryClientProvider (http://localhost:5173/node_modules/.vite/deps/chunk-W24DIHYJ.js?v=7749c979:2703:3)
    at WagmiConfig (http://localhost:5173/node_modules/.vite/deps/chunk-W24DIHYJ.js?v=7749c979:3117:3)
    at Root

@0xJem
Copy link
Contributor Author

0xJem commented Sep 14, 2023

@brightiron have you seen this before?

@0xJem
Copy link
Contributor Author

0xJem commented Sep 14, 2023

I think it has something to do with the Modal from the component-library

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

1 participant