guizero said almost 4 years ago on Hotwire :
I am following the tutorial and there are differences too.

I am on Rails 6.0.3.4 and Ruby 2.7.1. Hotwire 0.1.3

The the controllers folder was created inside `app/javascript`

My application.js looks like this

// This file is automatically compiled by Webpack, along with any other files
// present in this directory. You're encouraged to place your actual application logic in
// a relevant structure within app/javascript and only use these pack files to reference
// that code so it'll be compiled.

require("@rails/ujs").start()
require("@rails/activestorage").start()
require("channels")


// Uncomment to copy all static images under ../images to the output folder and reference
// them with the image_pack_tag helper in views (e.g <%= image_pack_tag 'rails.png' %>)
// or the `imagePath` JavaScript helper below.
//
// const images = require.context('../images', true)
// const imagePath = (name) => images(name, true)

import "controllers"

require("trix")
require("@rails/actiontext")

Everything went smooth until the StimulusJS part.

I am getting a:
Uncaught Error: Cannot find module 'controllers'

I have tried reinstalling stimulus-rails (rails stimulus:install) with no success.