maz

maz

Upgrading to Bamboo 2.2.0 from 1.6.0 Results in `Bamboo.Phoenix is not loaded and could not be found`

The line looks like:
use Bamboo.Phoenix, view: FaithfulWordWeb.EmailView

and it’s like Bamboo.Phoenix is just gone now:

== Compilation error in file lib/faithful_word/emails.ex ==
** (CompileError) lib/faithful_word/emails.ex:3: module Bamboo.Phoenix is not loaded and could not be found
    (elixir 1.11.1) expanding macro: Kernel.use/2
    lib/faithful_word/emails.ex:3: FaithfulWord.Emails (module)
    (elixir 1.11.1) lib/kernel/parallel_compiler.ex:314: anonymous fn/4 in Kernel.ParallelCompiler.spawn_workers/7

I like having Bamboo.Phoenix because I can assign() using pipe operator like:

  def welcome_email(%{email: email, org_name: org_name, url: url}) do
    base_email()
    |> IO.inspect()
    |> subject("#{org_name} - Welcome!")
    |> to(email)
    |> assign(:email, email)
    |> assign(:org_name, org_name)
    |> assign(:url, url)
    |> render_i18n(:welcome_email)
    |> premail()
    |> FaithfulWord.Mailer.deliver_now()

    :ok
  end

Rolling back to 1.7(or 1.6) and compile is OK.

Marked As Solved

l00ker

l00ker

You need to follow the process outlined in Upgrading to Bamboo 2.0.

Also Liked

maz

maz

Whoops, sorry I didn’t see that. I’m all good now with that other dependency.

Where Next?

Popular in Questions Top

New
Harrisonl
We have an ECS cluster with 4 services, where each task joins a single cluster, via discovery ECS discovery service. Currently when I de...
New
beno
I will often find my self writing things similar to: case some_value do nil -> something() "" -> something() _ -> somethi...
New
tduccuong
Hi, is there any work on GUI with Elixir, that is similar to Electron/Javascript? My idea is to bundle Phoenix and BEAM into a single se...
New
ycv005
I have followed this StackOverflow post to install the specific version of Erlang. And When I am running mix ecto.setup then getting fol...
New
jay1
Why is it that the mnesia database isn’t the most preferred database for use in Elixir/Phoenix?
New
Emily
I have VueJS GUIs with the project generated using Webpack. I have Elixir modules that will need to be used by the VueJS GUIs. I forese...
New
dblack
I’ve got an issue with an app and I’ve no idea of how to troubleshoot it. I’m hoping someone here might have seen something similar. I p...
New
joaquinalcerro
Hi there, I am working with Ecto-Postgresql and I need to call all of the records from a specific table but the table has 40,000 records...
New
hariharasudhan94
Lets say I have map like this fetching from my database %{"_id" => #BSON.ObjectId<58eb1a7a9ad169198c3dXXXX>, "email" => ...
New

Other popular topics Top

vertexbuffer
Hello, can anybody help here..? I have a list of players and I what to delete an element, but every for loop the list is reverting to ori...
New
Harrisonl
We have an ECS cluster with 4 services, where each task joins a single cluster, via discovery ECS discovery service. Currently when I de...
New
TunkShif
This post is an instruction guide to help you setup your Neovim for Elixir development from scratch. It includes general information on h...
274 41989 114
New
electic
Hi, I am new to Elixir. I am trying to use the DateTime component to insert a date into MySQL however the there seems to be no way to fo...
New
Fl4m3Ph03n1x
About me? ( if you have nothing better to do than reading about some random guy in the internet :stuck_out_tongue: ) Hello all, this is ...
New
chrismccord
This release brings a number of exciting features, including integration with the new Phoenix LiveDashboard and Phoenix LiveView. There h...
New
freewebwithme
Using vs code and installed ElixirLS: support and debugger. And I got an error popped up on start up says Failed to run ‘elixir’ comma...
New
vrod
I am using the Starship cross-shell prompt – it seems pretty nice, but I get some errors: [WARN] - (starship::utils): Executing command ...
New
ashish173
I am using Ecto timestamps with postgres, I can see the timestamps() use the :naive_dateime but for my use case I wanted to store the ti...
New
Brian
What is the proper way to load a module from a file in to IEX? In the python world, doing something like this pretty standard: from ....
New

We're in Beta

About us Mission Statement