image.png

image.png

스크린샷 2025-06-19 오전 11.41.20.png

Unexpected Application Error!

useAuth는 AuthProvider 내에서 사용되어야 합니다.

Error: useAuth는 AuthProvider 내에서 사용되어야 합니다.
    at useAuth (<http://localhost:5173/src/contexts/AuthContext.jsx:166:11>)
    at LoginPage (<http://localhost:5173/src/pages/AuthPage/LoginPage.jsx:29:38>)
    at react-stack-bottom-frame (<http://localhost:5173/node_modules/.vite/deps/react-dom_client.js?v=bfbc587f:17424:20>)
    at renderWithHooks (<http://localhost:5173/node_modules/.vite/deps/react-dom_client.js?v=bfbc587f:4206:24>)
    at updateFunctionComponent (<http://localhost:5173/node_modules/.vite/deps/react-dom_client.js?v=bfbc587f:6619:21>)
    at beginWork (<http://localhost:5173/node_modules/.vite/deps/react-dom_client.js?v=bfbc587f:7654:20>)
    at runWithFiberInDEV (<http://localhost:5173/node_modules/.vite/deps/react-dom_client.js?v=bfbc587f:1485:72>)
    at performUnitOfWork (<http://localhost:5173/node_modules/.vite/deps/react-dom_client.js?v=bfbc587f:10868:98>)
    at workLoopSync (<http://localhost:5173/node_modules/.vite/deps/react-dom_client.js?v=bfbc587f:10728:43>)
    at renderRootSync (<http://localhost:5173/node_modules/.vite/deps/react-dom_client.js?v=bfbc587f:10711:13>)

💿 Hey developer 👋

You can provide a way better UX than this when your app throws errors by providing your own ErrorBoundary or errorElement prop on your route.