Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to install when using an alternative asset bundler #5

Closed
shroy opened this issue Oct 9, 2022 · 2 comments
Closed

Unable to install when using an alternative asset bundler #5

shroy opened this issue Oct 9, 2022 · 2 comments

Comments

@shroy
Copy link

shroy commented Oct 9, 2022

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!

@alexisbernard
Copy link
Member

Thanks for the kind words :-)

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.

@shroy
Copy link
Author

shroy commented Nov 20, 2022

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.

Thanks for the response!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants