jQuery no longer loading Shakapacker 8.0.2 #517
Unanswered
RailsCod3rFuture
asked this question in
Q&A
Replies: 1 comment
-
Check this out: https://github.com/search?q=repo%3Ashakacode%2Freact-webpack-rails-tutorial%20jquery&type=code |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I tried loading jquery through expose loader and also loading it directly in the application.js. Doesn't seem like anything is working for it
steps to reproduce
create a rails 7.2.1 app
install shakapacker 8.0.2
yarn add jquery
yarn add expose-loader -D
import $ from "expose-loader?exposes=$,jQuery!jquery";
--- you'll see that jquery doesn't load at all...Causes all js to fail in application.js
Beta Was this translation helpful? Give feedback.
All reactions