active_analytics
active_analytics copied to clipboard
Unable to install when using an alternative asset bundler
I really like what you all are building here. It looks like a great gem! Unfortunately, when attempting to install the engine using the rails active_analytics:install:migrations
command, I am presented with this error:
NoMethodError: undefined method `assets' for #<Rails::Application::Configuration
I am running a Rails 7.0.2 app using vite.js
for all asset bundling. Sprockets and the asset pipeline are entirely removed, along with all references to config.assets
.
FWIW, when googling this error, I found the hotwire-rails
repo had to deal with it as well. Their solution was to wrap the asset installation in a conditional and (I assume) supply an npm package as an alternative. For reference, the PR for that can be found here. Hope that helps!