Skip to content
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

triggerRef throw error: Cannot read properties of undefined (reading 'trigger') #11982

Closed
wells1013 opened this issue Sep 20, 2024 · 0 comments · Fixed by #11986
Closed

triggerRef throw error: Cannot read properties of undefined (reading 'trigger') #11982

wells1013 opened this issue Sep 20, 2024 · 0 comments · Fixed by #11986

Comments

@wells1013
Copy link

wells1013 commented Sep 20, 2024

Vue version

3.5.6

Link to minimal reproduction

playground

Steps to reproduce

If you run the following code in a non-Vue file, you will get an error

const nextContext = {}, key = 'name';
const ref = Vue.toRef(nextContext, key)
Vue.triggerRef(ref)

The previous version(3.4.27) was good

What is expected?

fix error

What is actually happening?

throw error

TypeError: Cannot read properties of undefined (reading 'trigger')
    at Module.triggerRef (d3336fc2-4575-4884-ad36-b35ade730964:1374:14)
    at AvComponentModel.triggerPropChanged (model.ts:235:11)

System Info

No response

Any additional comments?

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants