skip to Main Content

webpack 5 & shakapacker 7: jQuery not being initialized

After upgrading webpack 4.46.0 to webpack 5.88.2 & shakapacker 7.0.3 (rails 6.1.7.6) got the Uncaught ReferenceError: $ is not defined error. Here the current setup: package.json { "name": "app", "private": true, "dependencies": { "@babel/runtime": "^7.22.15", "@fortawesome/fontawesome-free": "^6.4.2", "@hotwired/turbo-rails": "^7.3.0", "@popperjs/core":…

VIEW QUESTION
Back To Top
Search