I’m sorry folks but probably your issue is caused by your OS, where esbuild Could not resolve “app/javascript/.” when your app was building:
So, you have to navigate to root folder of your app, and run manually this instruction, but specifying the application.js like this: ./app/javascript/application.js Do not move the folder, it will allow you to work with your css, but will ignore the javascripts.also you can modify “package.json” like this
"scripts": {
"build": "esbuild app/javascript/application.js --bundle --sourcemap --outdir=app/assets/builds",
so then you can re- run this command
yarn run build