-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Production build crashes when trying to render a relation that is not present in the store #9038
Comments
this is likely the same issue as #8846 and it's unlikely we attempt to fix it as it represents the app doing incorrect things. In older versions this led to the app displaying undefined emergent behaviors that were typically broken but did not immediately produce an error. For instance, by causing relationships to never update ever again once the issue occurred for them. |
@runspired Since this is caused by a data issue on the BE we'd like to gain some details on what exactly is wrong in order to fix the inconsistencies. The problem here is that the exception raised on the FE doesn't provide any data-related information giving us no opportunity to react. |
@azhiv usually this means you are using a Generally speaking if you want |
@runspired This issue was fixed with upgrading from 4.12.4 -> 4.12.5; But now we are on 5.3.3 and it appears again. Is this expected in v5? |
@enspandi it might not hit stable release version of 5.3, can you try canary version ? |
I tried with 5.4.0-alpha.61 but get same result unfortunately 🤔
|
It looks like we never brought #9120 forward to the 5.x series, so we do need to do that. This said: when you hit these issues it generally indicates something you want to refactor to stop doing 😅 |
Reproduction
A github repository with a simplified reproduction. Run
ember serve -prod
and check the error in the console.Description
In case of a data issue a relation may point to a record with id that is not present in the store. In the development build this usually results in the following error:
In ED v3.28 the production build silently ignored this problem, essentially rendering an empty space in the template. However, in ED v4.12 (up to v5.3) this results in a very sophisticated exception:
originating from here.
This is very inconvenient because of two circumstances:
Versions
The text was updated successfully, but these errors were encountered: