import { Controller } from '@hotwired/stimulus'; /* * This is an example Stimulus controller! * * Any element with a data-controller="hello" attribute will cause * this controller to be executed. The name "hello" comes from the filename: * hello_controller.js -> "hello" * * Delete this file or adapt it for your use! */ export default class extends Controller { connect() { this.element.textContent = 'Hello Stimulus! Edit me in assets/controllers/hello_controller.js'; } }
Fatal error: Uncaught TypeError: Invalid return value: callable object expected, "int" returned from "/var/www/html/public/assets/controllers/hello_controller-VYgvytJ.js". in /var/www/html/vendor/autoload_runtime.php:12 Stack trace: #0 /var/www/html/public/index.php(5): require_once() #1 {main} thrown in /var/www/html/vendor/autoload_runtime.php on line 12