Webpacker not working rails 6
IvRRimum opened this issue · comments
Carl commented
Rails 6.0.3.5
3.0.0
My app/javascript/packs/active_admin.js
// Load Active Admin's styles into Webpacker,
// see `active_admin.scss` for customization.
import "../stylesheets/active_admin";
import "@activeadmin/activeadmin";
require('activeadmin_blaze_theme');
But the design doesnt change..
Carl commented
When doing a deploy to production
ModuleNotFoundError: Module not found: Error: Can't resolve 'activeadmin_blaze_theme' in '
Mattia Roccoberton commented
Hey @IvRRimum
The webpacker support is still experimental ATM.
I have just prepared a release with it (it was in the master branch only for the last week).
I also updated the README instructions using Webpacker.
I made a test locally (with production conf) and it works using:
compile: true
option set in config/webpacker.yml - in the production block;RAILS_ENV=production RAILS_SERVE_STATIC_FILES=1 bin/rails s
To troubleshoot you could:
- remove node_modules folder and run again
yarn
; - run
bin/rails tmp:clear
to clear the tmp files; - share some production logs otherwise.
I hope this will solve your issue.
Mattia Roccoberton commented
Closing for missing feedback - feel free to re-open it if the issue is not solved