You need to sign in to do that
Don't have an account?
Jennifer Prather
LWC Error Message
I received an error when testing a lightning web component.
Invalid key value "[object Object]" in [Object: vm undefined (93)]. Key must be a string or number.
I am not sure what this error means or what it is referrencing. Does anyone know what this means?
Invalid key value "[object Object]" in [Object: vm undefined (93)]. Key must be a string or number.
I am not sure what this error means or what it is referrencing. Does anyone know what this means?
This below blog might answer your query,
https://salesforce.stackexchange.com/questions/254421/using-wired-property-in-lwc
The blog status same error as yours.
I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.
Thanks.
I think you are trying to change an object to string .. that's is where you are getting the error message.
Hello Felix,
Yeah, I also already noticed that. But is there anyway how to solve it?
To me is pretty anoying because if I run with Debug Mode Off it loads the component without any issue, but if I activate it (Debug Mode On), every component that has a template iteration similar to what you described, fires the Error: Invalid key value "[object Object]"...