DEV Community

Discussion on: VueJS Watchers Issue

Collapse
 
terabytetiger profile image
Tyler V. (he/him)

The issue is with a misplaced }.

What you have is trying to include created and methods as part of your watch.

If you move the } on line 64 to between lines 32 and 33 that should put you back on track, but admittedly I'm not getting anything other than the "Questions usually contain a question mark" answer in Codesandbox.

It's working when I run the code locally after moving the } though...

Collapse
 
thecodingstoic profile image
theCodingStoic

The second issue was a misplaced ).

On line 49 the conditional should have been written:
if(this.answer.indexOf('?') === -1) whereas I had if(this.answer.indexOf('?' === -1)).

Collapse
 
terabytetiger profile image
Tyler V. (he/him)

Wow, it would have taken me forever to find that - good catch!

Thread Thread
 
thecodingstoic profile image
theCodingStoic

Fortunately, you made me conscious of such possibilities :)

Collapse
 
thecodingstoic profile image
theCodingStoic

TY muchly. I am getting the same thing but at least the first issue is solved and it is a new week now. :)