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
hello
while running the exmaple (docker compose build) I'm constanatly facing this error Type error: This kind of expression is always truthy.
Can anyone help with this?
Screenshot for ref.
The text was updated successfully, but these errors were encountered:
shouari
changed the title
Help needed--running example I face error
running example Error: Type error: This kind of expression is always truthy.
Sep 20, 2024
Issue was solved by changing from this code: switch (condition) { case "required": return <div className={style}>This field is required.</div>; case "minLength" || "maxLength": return ( <div className={style}> Your password must be between 8 and 64 characters long. </div> ); }
to this: switch (condition) { case "required": return <div className={style}>This field is required.</div>; case "minLength": case "maxLength": return ( <div className={style}> Your password must be between 8 and 64 characters long. </div> ); }
in the indicated files. There are 3 or 4 to be corrected
For people who have that in the codebase and are asking themself what happened, it was a hidden bug that was revealed by Typescript 5.6 update. Here is the PR microsoft/TypeScript#59217
hello
while running the exmaple (docker compose build) I'm constanatly facing this error
Type error: This kind of expression is always truthy.
Can anyone help with this?
Screenshot for ref.
The text was updated successfully, but these errors were encountered: