-
-
Notifications
You must be signed in to change notification settings - Fork 9k
Closed
Description
Vue version
3.2.39
Link to minimal reproduction
https://github.com/Dedicatus546/vue-props-required-invalid
Steps to reproduce
- install dep
- see
src/components/Comp1.tsxandsrc/components/Comp2.tsx
What is expected?
in src/components/Comp2.tsx props.name would be string instead of string | undefined.
What is actually happening?
in src/components/Comp2.tsx props.name is string | undefined.
System Info
System:
OS: Windows 10 10.0.22622
CPU: (8) x64 Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz
Memory: 2.86 GB / 15.92 GB
Binaries:
Node: 16.13.1 - D:\nodejs\node.EXE
npm: 8.1.2 - D:\nodejs\npm.CMD
Browsers:
Edge: Spartan (44.22621.590.0), Chromium (105.0.1343.33)
Internet Explorer: 11.0.22621.1
npmPackages:
vue: ^3.2.37 => 3.2.39Any additional comments?
if we should make required as true , and it work well.
is it type bug for vue, or maybe the way i use is error?
Metadata
Metadata
Assignees
Labels
No labels