skip to Main Content

Html – Image won't load in webpack build

slider.js ... const initialize = (pImages) => { pImages.forEach((image) => { const sliderItem = document.createElement("img"); sliderItem.src = image.src; // this line result in 404 not found in dev tool ... }) } ... index.js ... initialize( { src: "image relative…

VIEW QUESTION

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