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
PR #2275 was to accept null values in the v-model of the various components, but it turns out (thanks to KazariEX) that the problem comes from the tsconfig configuration of @nuxt/ui where strictNullCheck is false, which causes the null that should have existed to be deleted from the type when the component is compiled.
@benjamincanac is it safe to set strictNullCheck to true? Would you accept a PR?
EDIT
Well, I've just tested it, and simply changing the strictNullCheck property to true completely breaks the typecheck.
The text was updated successfully, but these errors were encountered:
valh1996
changed the title
null deleted from the final type when compiling the componentsnull modelValue deleted from the final type when compiling the components
Dec 9, 2024
Environment
Version
2.19.2
Reproduction
Description
PR #2275 was to accept null values in the
v-model
of the various components, but it turns out (thanks to KazariEX) that the problem comes from the tsconfig configuration of@nuxt/ui
wherestrictNullCheck
isfalse
, which causes thenull
that should have existed to be deleted from the type when the component is compiled.@benjamincanac is it safe to set
strictNullCheck
to true? Would you accept a PR?EDIT
Well, I've just tested it, and simply changing the
strictNullCheck
property totrue
completely breaks the typecheck.The text was updated successfully, but these errors were encountered: