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
processing entity undefined #474
Comments
Kind of another issue, but the documentation also states: "For schema generator to work properly in case of string enums, you need to define the enum is same file as where it is used, so its values can be automatically discovered. If you want to define the enum in another file, you should reexport it also in place where you use it."
|
It depends on how you register the enum. If you do That note is about using ts-morph discovery with just Reexporting simply means that in the context of the file there will be the enum available, so just this in your entity source file:
Regarding the issue itself, I guess I will just ignore plain objects in the discovery, valid entity needs to export either class or instance of EntitySchema. |
Cool, I'm doing the first bit. Might be good to expand the docs a bit to explain that so it is a little more clear. Agreed on the main issue fix. =) Should be able to mix files in my entities directory since this enum is primarily used from there. |
Thanks @B4nan . =) |
Describe the bug
Noticed this in the logs...
Looking in the cache directory, I see undefined.json
Which contains...
Now, one could say that I shouldn't do that. =) Or another could say... throw an error if we're going to make something
undefined
...Note that RigStatus is used as an enum field in the entities.
Versions
The text was updated successfully, but these errors were encountered: