zachdaniel

zachdaniel

Creator of Ash

Following Example (with small deviations) leads to (UndefinedFunctionError) function Link.__props__/0

Hello!

I’ve followed the example, but named the modules in a way that I personally would prefer. I haven’t tried naming them exactly as the getting started guide suggests yet, will do that next. Repo here: GitHub - zachdaniel/hash_example

I’m getting a relatively cryptic error:

[error] ** (UndefinedFunctionError) function Link.__props__/0 is undefined (module Li
nk is not available). Make sure the module name is correct and has been specified in 
full (or that an alias has been defined)
    Link.__props__()
    (hologram 0.2.0) lib/hologram/template/renderer.ex:233: Hologram.Template.Rendere
r.filter_allowed_props/2
    (hologram 0.2.0) lib/hologram/template/renderer.ex:190: Hologram.Template.Rendere
r.cast_props/2
    (hologram 0.2.0) lib/hologram/template/renderer.ex:47: Hologram.Template.Renderer
.render_dom/2
    (hologram 0.2.0) lib/hologram/template/renderer.ex:120: anonymous fn/3 in Hologra
m.Template.Renderer.render_dom/2
    (elixir 1.18.0) lib/enum.ex:2546: Enum."-reduce/3-lists^foldl/2-0-"/3
    (hologram 0.2.0) lib/hologram/template/renderer.ex:70: Hologram.Template.Renderer
.render_dom/2
    (hologram 0.2.0) lib/hologram/template/renderer.ex:120: anonymous fn/3 in Hologra
m.Template.Renderer.render_dom/2
    (elixir 1.18.0) lib/enum.ex:2546: Enum."-reduce/3-lists^foldl/2-0-"/3
    (hologram 0.2.0) lib/hologram/template/renderer.ex:120: anonymous fn/3 in Hologra
m.Template.Renderer.render_dom/2
    (elixir 1.18.0) lib/enum.ex:2546: Enum."-reduce/3-lists^foldl/2-0-"/3
    (hologram 0.2.0) lib/hologram/template/renderer.ex:70: Hologram.Template.Renderer
.render_dom/2
    (hologram 0.2.0) lib/hologram/template/renderer.ex:120: anonymous fn/3 in Hologra
m.Template.Renderer.render_dom/2
    (elixir 1.18.0) lib/enum.ex:2546: Enum."-reduce/3-lists^foldl/2-0-"/3
    (hologram 0.2.0) lib/hologram/template/renderer.ex:120: anonymous fn/3 in Hologra
m.Template.Renderer.render_dom/2
    (elixir 1.18.0) lib/enum.ex:2546: Enum."-reduce/3-lists^foldl/2-0-"/3
    (hologram 0.2.0) lib/hologram/template/renderer.ex:70: Hologram.Template.Renderer
.render_dom/2
    (hologram 0.2.0) lib/hologram/template/renderer.ex:120: anonymous fn/3 in Hologra
m.Template.Renderer.render_dom/2
    (elixir 1.18.0) lib/enum.ex:2546: Enum."-reduce/3-lists^foldl/2-0-"/3
    (hologram 0.2.0) lib/hologram/template/renderer.ex:70: Hologram.Template.Renderer
.render_dom/2

EDIT: looks like the naming has nothing to do with it :slight_smile:

Most Liked

zachdaniel

zachdaniel

Creator of Ash

Ah, okay, there is a missing alias Hologram.UI.Link in the main layout file. @bartblast should probably update the website :smiley:

bartblast

bartblast

Creator of Hologram

I’ve corrected the quick start guide on the website already, thanks!

Where Next?

Popular in Questions Top

srinivasu
How to handle excepions in elixir? Suppose i have A, B, C ,D, E modules. and each module has get() function. A.get() method will call th...
New
JorisKok
I have a server on AWS, and was running a load test using artillery. When looking at the Phoenix dashboard I see the Ports going to 100% ...
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
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
stefanluptak
Hello everybody, usually, I use a 29" ultra-wide monitor for VSCode which can easily accomodate explorer (files panel) + file with code ...
New
fireproofsocks
Forgive me if this is obvious, but how does one delete a database record WITHOUT selecting it first? https://hexdocs.pm/ecto/Ecto.Repo.h...
New
wernerlaude
In AR this is so simple @articles = current_user.articles How to do in Ecto? def index(conn, _params) do current_user = conn.assig...
New
9mm
I am constructing a JSON object (map) and I need to conditionally set a field. I’m trying to write proper elixir-way code… and I’m at a l...
New
siddhant3030
Hi, I have to write a raw query for one of my project. But till now I have used ecto queries and don’t have much experience writing raw ...
New
idi527
I’ve been re-reading swift book again and noticed that multiline strings there don’t have a trailing line break, unlike in elixir iex(2)...
New

Other popular topics Top

bsollish-terakeet
Credo is smart enough to check for (something like) this: assert length(the_list) == 0 with this response: Checking if an enum is empt...
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 record...
New
KronicDeth
Elixir plugin for JetBrain’s IntelliJ Platform (including Rubymine) This is a plugin that adds support for Elixir to JetBrains IntelliJ...
289 35421 110
New
SoCreat
i’m a new one to elixir which editor can i use vs code? or atom? Thanks! :smiley:
New
vac
Hi, I'm quite new in Elixir and I'm trying to format a string to a PEM format. I have the certificate value like MIIDBTCCAe2...... and ...
New
aadeshere1
I have a another noob question about loop. Since elixir is immutable, while loop is not directly possible. total = 10 while total != 0 ...
New
chrisalley
ExUnit now has describe blocks which is a welcome addition coming from RSpec. In the docs, it states that nested hierarchies of describe ...
New
AstonJ
by Lance Halvorsen Elixir and Phoenix are generating tremendous excitement as an unbeatable platform for building modern web application...
460 27162 124
New
siddhant3030
Hi, I have to write a raw query for one of my project. But till now I have used ecto queries and don’t have much experience writing raw ...
New
jay1
Why is it that the mnesia database isn’t the most preferred database for use in Elixir/Phoenix?
New

We're in Beta

About us Mission Statement