dbfu / fluxy-admin-web

fluxy-admin
https://www.fluxyadmin.cn
190 stars 50 forks source link

git clone了web和server,部署好之后,打开网站会出现大量的警告。 #5

Closed Joe-Ecust closed 11 months ago

Joe-Ecust commented 1 year ago

instrument.ts:132 Warning: Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()? at App (http://localhost:5173/src/app.tsx?t=1696342121320:33:7) (anonymous) @ instrument.ts:132 printWarning @ react-dom.development.js:86 error @ react-dom.development.js:60 validateFunctionComponentInDev @ react-dom.development.js:20193 mountIndeterminateComponent @ react-dom.development.js:20160 beginWork @ react-dom.development.js:21587 beginWork$1 @ react-dom.development.js:27426 performUnitOfWork @ react-dom.development.js:26557 workLoopSync @ react-dom.development.js:26466 renderRootSync @ react-dom.development.js:26434 performConcurrentWorkOnRoot @ react-dom.development.js:25738 workLoop @ scheduler.development.js:266 flushWork @ scheduler.development.js:239 performWorkUntilDeadline @ scheduler.development.js:533 instrument.ts:132 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 App. at ConfigProvider (http://localhost:5173/node_modules/.vite/deps/chunk-REEGOVGH.js?v=5e5a0711:7163:28) at App (http://localhost:5173/src/app.tsx?t=1696342121320:33:7) (anonymous) @ instrument.ts:132 printWarning @ react-dom.development.js:86 error @ react-dom.development.js:60 validateFunctionComponentInDev @ react-dom.development.js:20193 mountIndeterminateComponent @ react-dom.development.js:20160 beginWork @ react-dom.development.js:21587 beginWork$1 @ react-dom.development.js:27426 performUnitOfWork @ react-dom.development.js:26557 workLoopSync @ react-dom.development.js:26466 renderRootSync @ react-dom.development.js:26434 performConcurrentWorkOnRoot @ react-dom.development.js:25738 workLoop @ scheduler.development.js:266 flushWork @ scheduler.development.js:239 performWorkUntilDeadline @ scheduler.development.js:533 instrument.ts:132 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 App. at App (http://localhost:5173/node_modules/.vite/deps/chunk-REEGOVGH.js?v=5e5a0711:15002:16) at FormProvider2 (http://localhost:5173/node_modules/.vite/deps/chunk-REEGOVGH.js?v=5e5a0711:5393:31) at LocaleProvider (http://localhost:5173/node_modules/.vite/deps/chunk-REEGOVGH.js?v=5e5a0711:5884:13) at SizeContextProvider (http://localhost:5173/node_modules/.vite/deps/chunk-REEGOVGH.js?v=5e5a0711:6920:5) at ProviderChildren (http://localhost:5173/node_modules/.vite/deps/chunk-REEGOVGH.js?v=5e5a0711:7045:5) at ConfigProvider (http://localhost:5173/node_modules/.vite/deps/chunk-REEGOVGH.js?v=5e5a0711:7163:28) at App (http://localhost:5173/src/app.tsx?t=1696342121320:33:7) (anonymous) @ instrument.ts:132 printWarning @ react-dom.development.js:86 error @ react-dom.development.js:60 validateFunctionComponentInDev @ react-dom.development.js:20193 mountIndeterminateComponent @ react-dom.development.js:20160 beginWork @ react-dom.development.js:21587 beginWork$1 @ react-dom.development.js:27426 performUnitOfWork @ react-dom.development.js:26557 workLoopSync @ react-dom.development.js:26466 renderRootSync @ react-dom.development.js:26434 performConcurrentWorkOnRoot @ react-dom.development.js:25738 workLoop @ scheduler.development.js:266 flushWork @ scheduler.development.js:239 performWorkUntilDeadline @ scheduler.development.js:533 instrument.ts:132 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 App. at Router (http://localhost:5173/src/router.tsx?t=1696342121320:89:11) at ErrorBoundary (http://localhost:5173/node_modules/.vite/deps/@sentry_react.js?v=5e5a0711:16521:5) at div at App (http://localhost:5173/node_modules/.vite/deps/chunk-REEGOVGH.js?v=5e5a0711:15002:16) at FormProvider2 (http://localhost:5173/node_modules/.vite/deps/chunk-REEGOVGH.js?v=5e5a0711:5393:31) at LocaleProvider (http://localhost:5173/node_modules/.vite/deps/chunk-REEGOVGH.js?v=5e5a0711:5884:13) at SizeContextProvider (http://localhost:5173/node_modules/.vite/deps/chunk-REEGOVGH.js?v=5e5a0711:6920:5) at ProviderChildren (http://localhost:5173/node_modules/.vite/deps/chunk-REEGOVGH.js?v=5e5a0711:7045:5) at ConfigProvider (http://localhost:5173/node_modules/.vite/deps/chunk-REEGOVGH.js?v=5e5a0711:7163:28) at App (http://localhost:5173/src/app.tsx?t=1696342121320:33:7) (anonymous) @ instrument.ts:132 printWarning @ react-dom.development.js:86 error @ react-dom.development.js:60 validateFunctionComponentInDev @ react-dom.development.js:20193 mountIndeterminateComponent @ react-dom.development.js:20160 beginWork @ react-dom.development.js:21587 beginWork$1 @ react-dom.development.js:27426 performUnitOfWork @ react-dom.development.js:26557 workLoopSync @ react-dom.development.js:26466 renderRootSync @ react-dom.development.js:26434 performConcurrentWorkOnRoot @ react-dom.development.js:25738 workLoop @ scheduler.development.js:266 flushWork @ scheduler.development.js:239 performWorkUntilDeadline @ scheduler.development.js:533 instrument.ts:132 Warning: Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?

别人有遇到这个问题吗?

dbfu commented 1 year ago

这是警告,不影响运行,我正在解决。

Joe-Ecust commented 1 year ago

这是警告,不影响运行,我正在解决。

谢谢回复!为什么您的Demo网站里看不到这些warning?

dbfu commented 12 months ago

这是警告,不影响运行,我正在解决。

谢谢回复!为什么您的Demo网站里看不到这些warning?

那是因为线上隐藏了这些警告,只有开发环境才会有。

dbfu commented 11 months ago

已解决