Skip to content

Unable to install when using an alternative asset bundler #5

@shroy

Description

@shroy

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions