You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected behavior:
Compile without errors Actual behavior:
Object is possibly 'undefined'. (this line if (profileInfo && profileInfo.isError) { Playground Link: (not a playground but to state what tools i'm using) React, CRA, Mobx-React
More Details: I updated typescript to 3.7.3 after CRA released the scripts needed to support it "react-scripts": "3.3.0" and all worked fine and now I can use optional chaining and nullish coalescing but now I'm getting a compiling error that is stated above, though I'm checking for the object before accessing the key on it. and for some reason the "strictNullChecks": false in my tsconfig.json file is being ignored? the related issue states that there is something similar that is not fixed yet but my case is that with the strict checking turned off i still get such error.
Thanks.
The text was updated successfully, but these errors were encountered:
TypeScript Version: 3.7.3
Search Terms:
Object is possibly 'undefined'.
create react app, CRA, create-react-app
Code
Expected behavior:
Compile without errors
Actual behavior:
Object is possibly 'undefined'. (this line if (profileInfo && profileInfo.isError) {
Playground Link: (not a playground but to state what tools i'm using) React, CRA, Mobx-React
Related Issues: #29642 ?
compilerOptions
More Details: I updated typescript to 3.7.3 after CRA released the scripts needed to support it
"react-scripts": "3.3.0"
and all worked fine and now I can use optional chaining and nullish coalescing but now I'm getting a compiling error that is stated above, though I'm checking for the object before accessing the key on it. and for some reason the"strictNullChecks": false
in my tsconfig.json file is being ignored? the related issue states that there is something similar that is not fixed yet but my case is that with the strict checking turned off i still get such error.Thanks.
The text was updated successfully, but these errors were encountered: