Error with NGXS After Update to Version 18: "The selector below has thrown an error upon invocation" #2202
Unanswered
oscarandrespabonestrella
asked this question in
Q&A
Replies: 1 comment
-
|
The default for the You can adjust the Module config to go back to the old behaviour: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I've encountered an issue after updating NGXS to version 18. My application was working fine before the update, but now I'm seeing the following error:
The selector below has thrown an error upon invocation. Please check for any unsafe property access that may result in null or undefined values.', state => { ... }This error occurs during our tests, specifically when they are triggered by Jenkins. Interestingly, when I run the tests locally, the error appears, but the tests still pass.
Here are some details about the issue:
Steps I’ve taken so far:
Thank you in advance for your help!
UPDATE: I have fixed the issue checking the existence of the state before returning in all selectors across, the app. I don't know if exist a better way to manage this, but was the only one that worked for me
Beta Was this translation helpful? Give feedback.
All reactions