You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This error shows when I try to deserialize json data which has type Object or Array. I have added emitDecoratorMetadata and experimentalDecorators in the tsconfig.json as mentioned in the documentation.
Error
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'name')
at f2.deserializeProperty (typescript-json-serializer.js?v=5ac02d34:210:270)
at typescript-json-serializer.js?v=5ac02d34:115:35
at Array.forEach (<anonymous>)
at f2.deserializeObject (typescript-json-serializer.js?v=5ac02d34:114:16)
at f2.deserialize (typescript-json-serializer.js?v=5ac02d34:88:87)
at useWhatsapp.ts:45:18
at callWithErrorHandling (chunk-G3HSUYBM.js?v=5ac02d34:1750:18)
at callWithAsyncErrorHandling (chunk-G3HSUYBM.js?v=5ac02d34:1758:17)
at job (chunk-G3HSUYBM.js?v=5ac02d34:3199:9)
at callWithErrorHandling (chunk-G3HSUYBM.js?v=5ac02d34:1750:32)
Version
6.0.0
Description
Version
6.0.1
Description
This error shows when I try to deserialize json data which has type Object or Array. I have added
emitDecoratorMetadata
andexperimentalDecorators
in the tsconfig.json as mentioned in the documentation.Error
Reproduction
I have a json data:
and a
WhatsappTemplate
class:This is my tsconfig.json
when I try to deserialize this data into
WhatsappTemplate
class Array, this return the error I mentioned before.This issue doesn't appear when I remove
JsonProperty
as in this comment #132 (comment). But this makes the returned data empty.Does the
typescript-json-serializer
support nuxt js 3?On which OS the bug appears?
Windows 10
What is your project type?
NuxtJS 3.4.3
On which build mode the bug appears?
Development
Anything else?
No response
The text was updated successfully, but these errors were encountered: