question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[2.0.0-rc2] Can't get $refs correctly

See original GitHub issue

Vue.js version

2.0 rc2

Reproduction Link

https://jsfiddle.net/1khxsgue/

Steps to reproduce

Just click run button, open console can find the error Cannot read property 'hello' of undefined

What is Expected?

The same code with 2.0 rc-1 https://jsfiddle.net/y35ot0du/ run without any error. We can access key testA inthis.$refs when components mounted hook is called .

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
miljan-aleksiccommented, Aug 16, 2016

@dalphyx, seems to me is behaving as expected. There is a v-if directive set to false which alters the component execution. At the moment of mounted the test component is not available.

1reaction
miljan-aleksiccommented, Aug 16, 2016

@LinusBorg, if using v-if in a root node is forbidden, shouldn’t it warn about when doing such?

Read more comments on GitHub >

github_iconTop Results From Across the Web

<SOLVED>IDE 2.0.0-rc2 problem with serial monitor and ...
Serial monitor works fine with my ESP32-DEV-KIT-1 MCUs. But I cannot get it to work with my ESP32-CAM. I decided to modify the...
Read more >
vue.js - Vuejs can't access refs from component - Stack Overflow
I am getting the object though, but when I try to access the variable it is undefined. HTML. <div id="app> <template id="image-capture"> ...
Read more >
Troubleshooting App Deployment Errors - Dash Python
This troubleshooting guide describes errors that you may encounter when deploying apps to Dash Enterprise as well as steps to resolve them.
Read more >
OAuth 2.0 Resource Server JWT :: Spring Security
A consequence of this process is that the authorization server must be up and receiving requests in order for Resource Server to successfully...
Read more >
Strongly Typed Configuration Settings in ASP.NET Core
If you don't you get this error: InvalidOperationException: Unable to resolve service for type 'Microsoft.Extensions.Configuration.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found