IdiosApps

IdiosApps

Programming Phoenix LiveView: P69 - module Pento.Catalog.Product is not available

In my terminal, I am trying this with the source code from the .zip (the repo where I was going from scratch also wasn’t working - similar error).
I suspect it’s a user error, but the files are there is reasonable stuff like defmodule Pento.Catalog.Product do. Maybe my Elixir install is bad?

C:\Users\me\pento_examples\generators\pento>iex
Interactive Elixir (1.14.1) - press Ctrl+C to exit (type h() ENTER for help)
iex(1)> ls
.formatter.exs     .gitignore         assets             config             lib
mix.exs            mix.lock           priv               test
iex(2)> alias Pento.Catalog.Product
Pento.Catalog.Product
iex(3)> exports Product
** (UndefinedFunctionError) function Pento.Catalog.Product.module_info/1 is undefined (module Pento.Catalog.Product is not available)
    Pento.Catalog.Product.module_info(:exports)
    (iex 1.14.1) lib/iex/autocomplete.ex:138: IEx.Autocomplete.exports/1
    (iex 1.14.1) lib/iex/helpers.ex:736: IEx.Helpers.exports/1
    iex:3: (file)
iex(3)> 

I tried Catalog too, and that got the same kind of error.

Even on page 45 I hit an issue:

iex(1)> alias Pento.Accounts
Pento.Accounts
iex(2)> export Accounts
** (CompileError) iex:2: undefined function export/1 (there is no such import)

I had a Google but couldn’t see an answer that looked like it’d work for me.
Any help would be really appreciated, so I can continue making progress with the book!

Popular Prag Prog topics Top

jimschubert
In Chapter 3, the source for index introduces Config on page 31, followed by more code including tests; Config isn’t introduced until pag...
New
Alexandr
Hi everyone! There is an error on the page 71 in the book “Programming machine learning from coding to depp learning” P. Perrotta. You c...
New
edruder
I thought that there might be interest in using the book with Rails 6.1 and Ruby 2.7.2. I’ll note what I needed to do differently here. ...
New
raul
Page 28: It implements io.ReaderAt on the store type. Sorry if it’s a dumb question but was the io.ReaderAt supposed to be io.ReadAt? ...
New
conradwt
First, the code resources: Page 237: rumbl_umbrella/apps/rumbl/mix.exs Note: That this file is missing. Page 238: rumbl_umbrella/app...
New
swlaschin
The book has the same “Problem space/Solution space” diagram on page 18 as is on page 17. The correct Problem/Solution space diagrams ar...
New
curtosis
Running mix deps.get in the sensor_hub directory fails with the following error: ** (Mix) No SSH public keys found in ~/.ssh. An ssh aut...
New
fynn
This is as much a suggestion as a question, as a note for others. Locally the SGP30 wasn’t available, so I ordered a SGP40. On page 53, ...
New
redconfetti
Docker-Machine became part of the Docker Toolbox, which was deprecated in 2020, long after Docker Desktop supported Docker Engine nativel...
New
davetron5000
Hello faithful readers! If you have tried to follow along in the book, you are asked to start up the dev environment via dx/build and ar...
New

Other popular topics Top

AstonJ
A thread that every forum needs! Simply post a link to a track on YouTube (or SoundCloud or Vimeo amongst others!) on a separate line an...
New
DevotionGeo
I know that these benchmarks might not be the exact picture of real-world scenario, but still I expect a Rust web framework performing a ...
New
AstonJ
I ended up cancelling my Moonlander order as I think it’s just going to be a bit too bulky for me. I think the Planck and the Preonic (o...
New
AstonJ
Do the test and post your score :nerd_face: :keyboard: If possible, please add info such as the keyboard you’re using, the layout (Qw...
New
AstonJ
If you are experiencing Rails console using 100% CPU on your dev machine, then updating your development and test gems might fix the issu...
New
Margaret
Hello everyone! This thread is to tell you about what authors from The Pragmatic Bookshelf are writing on Medium.
1120 25042 738
New
PragmaticBookshelf
Author Spotlight Rebecca Skinner @RebeccaSkinner Welcome to our latest author spotlight, where we sit down with Rebecca Skinner, auth...
New
PragmaticBookshelf
Author Spotlight: Karl Stolley @karlstolley Logic! Rhetoric! Prag! Wow, what a combination. In this spotlight, we sit down with Karl ...
New
PragmaticBookshelf
Author Spotlight: Sophie DeBenedetto @SophieDeBenedetto The days of the traditional request-response web application are long gone, b...
New
First poster: bot
zig/http.zig at 7cf2cbb33ef34c1d211135f56d30fe23b6cacd42 · ziglang/zig. General-purpose programming language and toolchain for maintaini...
New

Latest in PragProg

View all threads ❯