-
-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Labels
bugSomething isn't workingSomething isn't working
Description
I am not sure where else to turn. I am getting this error code in VScode:
Element with id /home/richsmith/workspace/retiredmortgages/app/javascript/controllers/countchars_controller.js-countchars-true is already registered
I am at a loss as to what this means and what's causing it.
The controller itself is super simple:
import { Controller } from "@hotwired/stimulus"
export default class extends Controller {
static targets = ["name", "counter"]
connect() {
console.log("Countchars controller connected")
}
countCharacters(event) {
let characters = this.nameTarget.value.length;
this.counterTarget.innerText = characters;
}
}
But no matter what I do, this error lives on. Any suggestions? place to turn?
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working