0

I tried this exact approach to create a new Rails 7 app in How to install jQuery and bootstrap in rails 7 app using esbuild (without webpacker) , but now it seems like my rails app is just ignoring javascript all together - no errors, but no javascript running either (if I add a console log or alert, nothing happens, or introduce bugs in the existing js, no errors are reported - it’s as if the “JavaScript” folder doesn’t exist). I didn’t make any changes to the default created app. If I try creating a new app without esbuild, then I do have javascript working (executing), but then of course i have the issue I was originally trying to solve with esbuild of getting jquery to work. Any thoughts please on what I could be missing?

1 Answer 1

1

Wow - it had to be something. I was still using rails server instead of ./bin/dev - making that switch fixed it.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.