We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
3.0.0
https://codesandbox.io/s/epic-cohen-ddy3e?file=/src/components/TestProps.vue
Removing the validator on the "msg" prop will make the error vanish.
To have access to the prop in the Setup method.
Property 'msg' does not exist on type 'Readonly<{ [x: number]: string; } & { length?: number | undefined; toString?: string | undefined; toLocaleString?: string | undefined; concat?: string[] | undefined; join?: string | undefined; slice?: string[] | undefined; ... 16 more ...; flat?: unknown[] | undefined; }> | Readonly<...>'. Property 'msg' does not exist on type 'Readonly<{ [x: number]: string; } & { length?: number | undefined; toString?: string | undefined; toLocaleString?: string | undefined; concat?: string[] | undefined; join?: string | undefined; slice?: string[] | undefined; ... 16 more ...; flat?: unknown[] | undefined; }>'.
Locally this is the complete error output:
ERROR in src/components/TestProps.vue:27:23 TS2339: Property 'msg' does not exist on type 'Readonly<{ [x: number]: string; } & { length?: number | undefined; toString?: string | undefined; toLocaleString?: string | undefined; concat?: string[] | undefined; join?: string | undefined; slice?: string[] | undefined; ... 16 more ...; flat?: unknown[] | undefined; }> | Readonly<...>'. Property 'msg' does not exist on type 'Readonly<{ [x: number]: string; } & { length?: number | undefined; toString?: string | undefined; toLocaleString?: string | undefined; concat?: string[] | undefined; join?: string | undefined; slice?: string[] | undefined; ... 16 more ...; flat?: unknown[] | undefined; }>'. 25 | }, 26 | setup(props) { > 27 | console.log(props.msg); | ^^^ 28 | } 29 | }); 30 | </script>
The text was updated successfully, but these errors were encountered:
Duplicate of #2474
Sorry, something went wrong.
No branches or pull requests
Version
3.0.0
Reproduction link
https://codesandbox.io/s/epic-cohen-ddy3e?file=/src/components/TestProps.vue
Steps to reproduce
Removing the validator on the "msg" prop will make the error vanish.
What is expected?
To have access to the prop in the Setup method.
What is actually happening?
Locally this is the complete error output:
The text was updated successfully, but these errors were encountered: