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
Calling a method or property of another component using ref in one component raises an error when run build script, But running dev Script is normal
#4896
vendor.df413e7c.js:1 TypeError: Cannot read property 'childrenFunc' of undefined
at a (index.ea811d73.js:1)
at go (vendor.df413e7c.js:1)
at mo (vendor.df413e7c.js:1)
at HTMLDivElement.n (vendor.df413e7c.js:1)
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/vue-next instead.
Hello @jzfai. Please provide a minimal reproduction using a GitHub repository or StackBlitz. Issues marked with need reproduction will be closed if they have no activity within 3 days.
Describe the bug
Reproduction
yarn create vite
cd vite-project
yarn
add Children.vue component to HelloWord.vue
call Children func thought ref in HelloWord.vue
run build script
System Info
Used Package Manager
yarn
Logs
Validations
The text was updated successfully, but these errors were encountered: