beno
Mix.Task has Phoenix dependency?
I created a simple application with only :redix and :csv as dependencies. However, when I added a Mix task (called generate) to this project and tried to run it, I got back all these Phoenix related errors, which of course I have not included in this project. Any ideas?
% mix generate
17:43:10.343 [error] beam/beam_load.c(148): Error loading module 'Elixir.Mix.Tasks.Local.Phoenix':
please re-compile this module with an Erlang/OTP 25 compiler
17:43:10.343 [error] Loading of /Users/michel/.mix/archives/phoenix_new/phoenix_new/ebin/Elixir.Mix.Tasks.Local.Phoenix.beam failed: :badfile
17:43:10.345 [error] Loading of /Users/michel/.mix/archives/phoenix_new/phoenix_new/ebin/Elixir.Mix.Tasks.Phoenix.New.beam failed: :badfile
17:43:10.345 [error] beam/beam_load.c(148): Error loading module 'Elixir.Mix.Tasks.Phoenix.New':
please re-compile this module with an Erlang/OTP 25 compiler
** (Mix) The task "generate" could not be found
EDIT: never mind, I forgot to put the task in the Mix.Tasks namespace. Still, it seems strange Phoenix appears like that.
First Post!
sodapopcan
You’re seeing the archive for the mix phx.new command which is available globally (outside of mix projects). I’m assuming since it was outside the namespace it was treating it as an archive and ensuring local archives are compiled but you haven’t yet updated phx_new since you upgrading to OTP 26? That’s my best semi-educated guess ![]()
Popular in Questions
Hello everyone,
I try to use an Javascript Event Handler in my root.html.leex file.
Therefore I created a function in the app.js file: ...
New
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
I have seen a lot of code which picks the first element from a list using Enum.at(0) instead of List.first. Is there a reason why people ...
New
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
I am trying to implement my new.html.eex file to create new posts on my website.
new.html.eex:
<h1>Create Post</h1>
<%= ...
New
Hello everybody,
usually, I use a 29" ultra-wide monitor for VSCode which can easily accomodate explorer (files panel) + file with code ...
New
I have a User schema with a :from_id field set to type :string:
defmodule TweetBot.Repo.Migrations.CreateUsers do
use Ecto.Migration
...
New
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
Okay, I’m having a heck of a time trying to figure out how to best handle the validation of belongs_to associations in Ecto. I’m sure I’...
New
Hello!
Sorry for this astonishing simple question, but I’m really stuck. I try to set up the intellij-elixir plugin, but I don’t know ho...
New
Other popular topics
None of the current solutions worked well for me, so I went ahead and built a user management system from scratch.
This project took far...
New
I have seen a lot of code which picks the first element from a list using Enum.at(0) instead of List.first. Is there a reason why people ...
New
TL;DR: I’ve just released an implementation of Microsoft’s IDE-independent Language Server Protocol for Elixir. It adds language support ...
New
I am using the Starship cross-shell prompt – it seems pretty nice, but I get some errors:
[WARN] - (starship::utils): Executing command ...
New
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
Original source of discussion: This topic on the Pragmatic Programmers’ Functional Web Development with Elixir, OTP, and Phoenix forum.
...
New
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
I had some trouble figuring out how to make many-to-many associations work. Once I got it working, I wrote a blog post. Because I’m a nov...
New
For some reason my phoenix channels are working for me in my local dev environment, but as soon as I deploy via Docker, I get a 403 error...
New
Kind of like when jquery came out, it was super necessary. Existing drag and drop libraries have a bunch of baggage to support old browse...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #javascript
- #code-sync
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance








