It’s a bit hard to identify the problem from what you’ve given. If you are pulling in Heroicons via a mix dependency (e.g. {:heroicons, "~> 0.5"}, in your mix.exs) then you would access them via the function components defined in the Heroicons library, e.g.
Edit: if you are using the default contents of core_components.ex, read the generated docs for the icon function - it explains how the icons are extracted.
This depends on the version of 1.7. Heroicons started as a mix dependency up until 1.7.2 I believe, then it changed to being frontend assets. The dependency version is compiled in and includes every icon, bloating your app a little. You get more flexibility with changing colors and other svg internals though.
I see you’ve solved your problem, though it looks like you might be using the Heroicons package? If you want to use the <.icon /> way, you could try running this inside assets/vendor/heroicons/:
You didn’t confirm if you are on at least 1.7.2. If you aren’t this won’t work. If you are, did you try running the command I gave (especially if you upgraded from an earlier 1.7.x)? Otherwise, something else is up as there is no reason this shouldn’t work. You’re gonna have to look in devtools to see if there is anything strange going on.
The issue seems to be that the heex file is defined here: lib/session/gatekeeper/gatekeeper.html.heex and the icons are not being imported. If used else where its taken care of. Any ideas?