Skip to content

The asset 'reactionview-dev-tools.umd.js' was not found in the load path #92

@jherdman

Description

@jherdman

Greetings.

I'm seeing the following issue with my email templates when ReactionView is in mix:

[/Users/jamesherdman/.local/share/mise/installs/ruby/4.0.1/lib/ruby/gems/4.0.0/gems/propshaft-1.3.1/lib/propshaft/helper.rb:50:in 'Propshaft::Helper#compute_asset_path'](http://localhost:3000/rails/mailers/passwords_mailer/reset#)

[/Users/jamesherdman/.local/share/mise/installs/ruby/4.0.1/lib/ruby/gems/4.0.0/gems/actionview-8.1.2.1/lib/action_view/helpers/asset_url_helper.rb:204:in 'ActionView::Helpers::AssetUrlHelper#asset_path'](http://localhost:3000/rails/mailers/passwords_mailer/reset#)

[/Users/jamesherdman/.local/share/mise/installs/ruby/4.0.1/lib/ruby/gems/4.0.0/gems/actionview-8.1.2.1/lib/action_view/helpers/asset_url_helper.rb:322:in 'ActionView::Helpers::AssetUrlHelper#javascript_path'](http://localhost:3000/rails/mailers/passwords_mailer/reset#)

[/Users/jamesherdman/.local/share/mise/installs/ruby/4.0.1/lib/ruby/gems/4.0.0/gems/actionview-8.1.2.1/lib/action_view/helpers/asset_tag_helper.rb:127:in 'block in ActionView::Helpers::AssetTagHelper#javascript_include_tag'](http://localhost:3000/rails/mailers/passwords_mailer/reset#)

[/Users/jamesherdman/.local/share/mise/installs/ruby/4.0.1/lib/ruby/gems/4.0.0/gems/actionview-8.1.2.1/lib/action_view/helpers/asset_tag_helper.rb:126:in 'Array#map'](http://localhost:3000/rails/mailers/passwords_mailer/reset#)

[/Users/jamesherdman/.local/share/mise/installs/ruby/4.0.1/lib/ruby/gems/4.0.0/gems/actionview-8.1.2.1/lib/action_view/helpers/asset_tag_helper.rb:126:in 'ActionView::Helpers::AssetTagHelper#javascript_include_tag'](http://localhost:3000/rails/mailers/passwords_mailer/reset#)

[/Users/jamesherdman/.local/share/mise/installs/ruby/4.0.1/lib/ruby/gems/4.0.0/gems/propshaft-1.3.1/lib/propshaft/helper.rb:103:in 'block in Propshaft::Helper#javascript_include_tag'](http://localhost:3000/rails/mailers/passwords_mailer/reset#)

[/Users/jamesherdman/.local/share/mise/installs/ruby/4.0.1/lib/ruby/gems/4.0.0/gems/propshaft-1.3.1/lib/propshaft/helper.rb:127:in 'block in Propshaft::Helper#_build_asset_tags'](http://localhost:3000/rails/mailers/passwords_mailer/reset#)

[/Users/jamesherdman/.local/share/mise/installs/ruby/4.0.1/lib/ruby/gems/4.0.0/gems/propshaft-1.3.1/lib/propshaft/helper.rb:125:in 'Array#map'](http://localhost:3000/rails/mailers/passwords_mailer/reset#)

[/Users/jamesherdman/.local/share/mise/installs/ruby/4.0.1/lib/ruby/gems/4.0.0/gems/propshaft-1.3.1/lib/propshaft/helper.rb:125:in 'Propshaft::Helper#_build_asset_tags'](http://localhost:3000/rails/mailers/passwords_mailer/reset#)

[/Users/jamesherdman/.local/share/mise/installs/ruby/4.0.1/lib/ruby/gems/4.0.0/gems/propshaft-1.3.1/lib/propshaft/helper.rb:103:in 'Propshaft::Helper#javascript_include_tag'](http://localhost:3000/rails/mailers/passwords_mailer/reset#)

SNIP SNIP SNIP

I've tried to manually add the javascript_include_tag for the mentioned asset, but to no avail.

I've also tried this in my mailer layout:

<!DOCTYPE html>

<html lang="en">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <% if Rails.env.development? %>
      <%= javascript_importmap_tags %>
    <% end %>
  </head>

  <body
    style="margin: 0; padding: 0; background-color: #f4f4f5; font-family: Inter, ui-sans-serif, system-ui, sans-serif; -webkit-font-smoothing: antialiased;"
  >

  <!-- SNIP SNIP SNIP

No luck either.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions