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

@feathersjs/schema resolver throws unhelpful error #3439

Open
jd1378 opened this issue Mar 8, 2024 · 0 comments
Open

@feathersjs/schema resolver throws unhelpful error #3439

jd1378 opened this issue Mar 8, 2024 · 0 comments

Comments

@jd1378
Copy link
Contributor

jd1378 commented Mar 8, 2024

[...new Set(Object.keys(data).concat(this.propertyNames as string[]))]

this line of code throws with this error: Cannot convert undefined or null to object

which is unhelpful because I am not really understanding the cause of issue

I suggest checking if data is null or undefined and throwing a more helpful error on why it should not be null or undefined and what we can do about it

this is a very frustrating error that I keep getting in my development from time to time as I'm experimenting with feathersjs on how to do things

System configuration

Module versions : 5.0.23

NodeJS version: v20.10.0

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

1 participant