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

profileUpdatePage Error #2

Open
kavindu919 opened this issue Apr 26, 2024 · 4 comments
Open

profileUpdatePage Error #2

kavindu919 opened this issue Apr 26, 2024 · 4 comments

Comments

@kavindu919
Copy link

after creating profile update page this errors occurred in web page and console how can we fix it

Unexpected Application Error!
Objects are not valid as a React child (found: object with keys {message, name, code, config, request, response}). If you meant to render a collection of children, use an array instead.
Error: Objects are not valid as a React child (found: object with keys {message, name, code, config, request, response}). If you meant to render a collection of children, use an array instead.
at throwOnInvalidObjectType (http://localhost:5173/node_modules/.vite/deps/chunk-XBHG3ID7.js?v=12ed7edd:11222:17)
at reconcileChildFibers2 (http://localhost:5173/node_modules/.vite/deps/chunk-XBHG3ID7.js?v=12ed7edd:11852:15)
at reconcileChildren (http://localhost:5173/node_modules/.vite/deps/chunk-XBHG3ID7.js?v=12ed7edd:14292:37)
at updateHostComponent (http://localhost:5173/node_modules/.vite/deps/chunk-XBHG3ID7.js?v=12ed7edd:14802:11)
at beginWork (http://localhost:5173/node_modules/.vite/deps/chunk-XBHG3ID7.js?v=12ed7edd:15923:22)
at beginWork$1 (http://localhost:5173/node_modules/.vite/deps/chunk-XBHG3ID7.js?v=12ed7edd:19749:22)
at performUnitOfWork (http://localhost:5173/node_modules/.vite/deps/chunk-XBHG3ID7.js?v=12ed7edd:19194:20)
at workLoopSync (http://localhost:5173/node_modules/.vite/deps/chunk-XBHG3ID7.js?v=12ed7edd:19133:13)
at renderRootSync (http://localhost:5173/node_modules/.vite/deps/chunk-XBHG3ID7.js?v=12ed7edd:19112:15)
at recoverFromConcurrentError (http://localhost:5173/node_modules/.vite/deps/chunk-XBHG3ID7.js?v=12ed7edd:18732:28)
at performConcurrentWorkOnRoot (http://localhost:5173/node_modules/.vite/deps/chunk-XBHG3ID7.js?v=12ed7edd:18680:30)
at workLoop (http://localhost:5173/node_modules/.vite/deps/chunk-XBHG3ID7.js?v=12ed7edd:197:42)
at flushWork (http://localhost:5173/node_modules/.vite/deps/chunk-XBHG3ID7.js?v=12ed7edd:176:22)
at MessagePort.performWorkUntilDeadline (http://localhost:5173/node_modules/.vite/deps/chunk-XBHG3ID7.js?v=12ed7edd:384:29)
**Here the error occur in console **
Argument user is missing.
at Tn (C:\Users\Kavindu\Desktop\Push\api\node_modules@prisma\client\runtime\library.js:115:6855)
at In.handleRequestError (C:\Users\Kavindu\Desktop\Push\api\node_modules@prisma\client\runtime\library.js:122:6510)
at In.handleAndLogRequestError (C:\Users\Kavindu\Desktop\Push\api\node_modules@prisma\client\runtime\library.js:122:6188)
at In.request (C:\Users\Kavindu\Desktop\Push\api\node_modules@prisma\client\runtime\library.js:122:5896)
at async l (C:\Users\Kavindu\Desktop\Push\api\node_modules@prisma\client\runtime\library.js:127:11167)
at async addPost (file:///C:/Users/Kavindu/Desktop/Push/api/controllers/post.controller.js:44:21) {
clientVersion: '5.13.0'
}

@V10codes
Copy link

did you fix this error?

@kavindu919
Copy link
Author

unfortunately no.

@chandankumarm55
Copy link

you are trying to render the objects directly that's why u are getting this error . it is happening in the api calling time and storing in state . make sure that your displaying the error message correctly .

{error}
incorrect method ,
{error.message}
this method is correct

@kavindu919
Copy link
Author

kavindu919 commented Jun 10, 2024 via email

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

3 participants