Start your All-Access Pass to unlock this challenge
After upgrading to Stimulus 3, how do you fix the error assets/controllers/answer-vote_controller.js contains a reference to the file "stimulus".?
assets/controllers/answer-vote_controller.js contains a reference to the file "stimulus".
By changing the controller import to import { Controller } from '@stimulus';
import { Controller } from '@stimulus';
By changing the controller import to import { Controller } from 'stimulus';
import { Controller } from 'stimulus';
By changing the controller import to import { Controller } from '@hotwired/stimulus';
import { Controller } from '@hotwired/stimulus';