Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot compile: "function nil.new/0 is undefined" #12

Open
bortzmeyer opened this issue Apr 7, 2022 · 0 comments
Open

Cannot compile: "function nil.new/0 is undefined" #12

bortzmeyer opened this issue Apr 7, 2022 · 0 comments

Comments

@bortzmeyer
Copy link

% mix deps.get 
Resolving Hex dependencies...
Dependency resolution completed:
New:
  configparser 4.0.0
All dependencies are up to date

% mix deps.compile
==> configparser
Compiling 2 files (.ex)

== Compilation error in file lib/ConfigParser/ParseState.ex ==
** (UndefinedFunctionError) function nil.new/0 is undefined. If you are using the dot syntax, such as map.field or module.function(), make sure the left side of the dot is an atom or a map
    nil.new()
    lib/ConfigParser/ParseState.ex:22: (module)
    (stdlib 3.17) erl_eval.erl:685: :erl_eval.do_apply/6
could not compile dependency :configparser, "mix compile" failed. You can recompile this dependency with "mix deps.compile configparser", update it with "mix deps.update configparser" or clean it with "mix deps.clean configparser"
% elixir --version
Erlang/OTP 24 [erts-12.2] [source] [64-bit] [smp:12:12] [ds:12:12:10] [async-threads:1] [jit]

Elixir 1.12.2 (compiled with Erlang/OTP 24)

(Same thing with Elixir 1.9.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant