Ash FrameworkAF
Ash Framework3mo ago
18 replies
Ahrou

Error "Module must be purged before deleting" after updating dependencies

Hey there, has anyone encountered an issue when upgrading the dependencies where the mix format command prints out all these errors?

09:36:18.362 [error] Module 'Elixir.Phoenix.HTML.Safe' must be purged before deleting
09:36:18.362 [error] Module 'Elixir.Phoenix.HTML.Safe' must be purged before deleting
09:36:18.376 [error] Module 'Elixir.List.Chars' must be purged before deleting
09:36:18.378 [error] Module 'Elixir.Inspect' must be purged before deleting
09:36:18.418 [error] Module 'Elixir.Enumerable' must be purged before deleting
09:36:18.676 [error] Module 'Elixir.String.Chars' must be purged before deleting
09:36:18.676 [error] Module 'Elixir.String.Chars' must be purged before deleting


If i disable the Spark.Formatter plugin in formatter.ex they are gone though.

My ash dep was in v3.5.43 so a bit outdated, and this happens when updating all of them
Solution
tried again today and it is working, idk if thats the reason but had come conflicts in my elixir versions between my terminal/vscode so might have been running in 1.18 actually with the new formatter that requires 1.19 🤔
Was this page helpful?