You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!
The text was updated successfully, but these errors were encountered:
I added the condition to prevent from crashing when there is no asset pipeline. However I don't feel like managing an external npm package for the assets. Feel free to do it although.
I can completely understand. I was attempting to use this on a side project that consumes my own free time. Perhaps I'll revisit it in the future if I'm looking for something new to do.
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: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 toconfig.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!The text was updated successfully, but these errors were encountered: