ariandanim

ariandanim

Warning using map.field notation (without parentheses)

Dear all,

I have error when try mix phx.server

warning: using map.field notation (without parentheses) to invoke function FileSystem.Backends.FSWindows.bootstrap() is deprecated, you must add parentheses instead: remote.function()
  (file_system 0.2.10) lib/file_system/backend.ex:23: FileSystem.Backend.backend/1
  (file_system 0.2.10) lib/file_system/worker.ex:18: FileSystem.Worker.init/1
  (stdlib 6.1) gen_server.erl:2229: :gen_server.init_it/2
  (stdlib 6.1) gen_server.erl:2184: :gen_server.init_it/6
  (stdlib 6.1) proc_lib.erl:329: :proc_lib.init_p_do_apply/3

I am using Phoenix 1.7.14, Ellixir 1.17.3 and Erlang 27.1.2 in OS Windows 11

Marked As Solved

dimitarvp

dimitarvp

OK, show us the output of mix deps.update phoenix_live_reload then.

Also Liked

stefanluptak

stefanluptak

Your (or one of your lib’s) dependency file_system is doing module.bootstrap instead of module.bootstrap().
This was already fixed, see here so the best you can do is to update the dependency or the lib that is using it.

EDIT: It’s not an error, just a warning.

dimitarvp

dimitarvp

Well, looks like this particular warning is now gone.

You can also try individually upgrading the dependencies that have warnings i.e.

mix deps.update tailwind
mix deps.update mint
mix deps.update phoenix_live_dashboard

But be warned, since LiveView is still not 1.0, stuff might break. Better backup and/or make sure that you can revert the project to where it was before running the commands (usually git revert . should work).

Last Post!

ariandanim

ariandanim

Thanks A lot Sir :smiley:

Where Next?

Popular in Questions Top

rms.mrcs
Hi, I need to transform a list of numbers into a map where the keys are the indexes and the values are the original values of the list. ...
New
electic
Hi, I am new to Elixir. I am trying to use the DateTime component to insert a date into MySQL however the there seems to be no way to fo...
New
nobody
Hi! In PHP: $_SERVER[‘SERVER_ADDR’] - in Elixir? Searched the docs for ip address and the web, no good results. Thanks!
New
vegabook
I’m brand new to Phoenix and I have stripped one of the demo applications to the bone. I just want to get an svg up on the screen. Here i...
New
jononomo
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
SoCreat
i’m a new one to elixir which editor can i use vs code? or atom? Thanks! :smiley:
New
Patoshizzle
After calling mix ecto.create I get this error: 17:00:32.162 [error] GenServer #PID<0.412.0> terminating ** (Postgrex.Error) FATAL...
New

Other popular topics Top

JeremM34
Hello, how can I check the Phoenix version ? Thanks !
New
grych
Hi folks, Few months ago I have announced the proof-of-concept of the library to manipulate the browsers DOM objects directly from Elixi...
639 54092 488
New
jononomo
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
gshaw
What is the idiomatic way of matching for not nil in Elixir? E.g., First way: defp halt_if_not_signed_in(conn, signed_in_account) when...
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

We're in Beta

About us Mission Statement