-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
_resolveDef function access props but it is undefined #6895
New issue
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
Comments
We should also check the |
…ps is not undefined (fix vuejs#6895)
I did a PR for that already months ago. Seems ro have been drowned out a bit. #6182 So this issue is a duplicate, but the original issue seems to have been closed by the author. So we'll leave this one. |
@defaude So how can I skip this question? I am stucked. 😂 |
i think a workaround was to define an empty props object in the component? Not sure, can't test right now |
@LinusBorg Thanks. It works. <script lang="ts" setup>
defineProps<{ somePatch: string }>();
</script> |
Please don't close it, it's still so a bug 😅 |
I found this bug had been resolved and merged into master. I am a inexperienced programmer. I want to ask when vue will release a new version after pr is merged? I know it is not a important bug. Just want to learn the vue's release plan. |
We will release a new version, sure. But we necessarily don't do so after every merged PR - often we have some accumulate and release them together in a patch release. You can expect a release in the next couple of days I think |
…vuejs#6182) fix Scoped attribute in Vue file affects the use of web component vuejs#6163,vuejs#6895
…vuejs#6182) fix Scoped attribute in Vue file affects the use of web component vuejs#6163,vuejs#6895
Vue version
^3.2.40
Link to minimal reproduction
https://stackblitz.com/edit/vitejs-vite-bjiedl?file=src/App.vue
Steps to reproduce
Uncaught TypeError: Cannot read properties of undefined (reading 'dataV7a7a37b1') at resolve2 (vue.js?v=f51652de:7665:28)
I am not sure vue version is 3.2.37.. I console log the varible in debuuger
What is expected?
Webcomponent can success render.
What is actually happening?
In runtime-dom.esm-bundler.js _resolveDef function props is undefined.
System Info
Any additional comments?
No response
The text was updated successfully, but these errors were encountered: