Posts

Showing posts with the label webpacker

Getting errors in Rails asset:pipeline with Webpacker and Heroku

Getting errors in Rails asset:pipeline with Webpacker and Heroku I have a Rails 5.1.4 app that I inherited that is deployed to Heroku. It is using webpacker with vuejs and am now having problems deploying to Heroku. I am getting the following message when Heroku run rake assets:precompile: rake assets:precompile: remote: [13] ./app/javascript/production-guarantee-component.vue 193 bytes {0} [built] [failed] [1 error] remote: [14] ./app/javascript/packs/tmp_dashboard.js 2.44 kB {1} [built] remote: + 4 hidden modules remote: ERROR in ./app/javascript/adder-dashboard.vue remote: Module parse failed: Unexpected token (1:0) remote: You may need an appropriate loader to handle this file type. remote: | <template> remote: | <div class="col-md-12"> remote: | <adder-component v-for="category in categories" :category ="category"></adder-component> remote: @ ./app/ja...