Sachin Ashturkar

Joined

40 Experience
0 Lessons Completed
0 Questions Solved

Activity

Posted in How to use jQuery & jQueryUI with Esbuild Discussion

Thanks.
This did not work, instead produced runtime error.
I will be using jquery within stimulus controller instead, which worked for me.

Posted in How to use jQuery & jQueryUI with Esbuild Discussion

Also, there are errors like: ActionController::RoutingError (No route matches [GET] "/images/ui-icons_555555_256x240.png")
I have copied these icons from the downloaded jquery-ui-1.13.0.custom zip file into the app/assets/images folder and inside app/assets/config/manifests added //= link_tree ../images

Posted in How to use jQuery & jQueryUI with Esbuild Discussion

I have done all of the above. But, jquery is not available in my html.erb files inside the tag.<br> e.g. say inside app/views/home/index.html.erb</p> <script> $( () => { console.log("Hello World!"); });

I get the error:
Uncaught ReferenceError: $ is not defined

  1. Remove bin/ in Procfile.dev
  2. Then just run foreman start -f Procfile.dev