Elixir Absinthe GraphQL Apı

i am new to elixir graphql API, i created a new project and got this error(Project created in windows cmd)

mix phx.new graphql_apı --no-html --no-webpack

** (Mix) Invalid option: --no-webpack

I think you should try mix phx.new graphql_api --no-html --no-assets

## Options
  ...
  • --no-assets - do not generate the assets folder. When choosing this
    option, you will need to manually handle JavaScript/CSS if building HTML
    apps.
1 Like

–no-webpack works on mac why not on windows

–no-webpack is obsolete since Phoenix switched to esbuild.

What version of Phoenix are You using?

elixir -v

Erlang/OTP 24 [erts-12.2.1] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [jit]

Elixir 1.13.3 (compiled with Erlang/OTP 22)

The Phoenix version, not Erlang nor Elixir version :slight_smile:

Phoenix version 1.6.6

No more --no-webpack with this Phoenix version…

You can get all options with

$ mix help phx.new

and You are using an Elixir version for otp-22, but You are on otp-24

1 Like

How can I upgrade to last Phoenix version?

It’s not Phoenix, it’s Elixir, and it depends how You install it.

I use asdf-vm, and can list all versions, and install the one I want.

$ asdf list-all elixir
...
1.13.4
1.13.4-otp-22
1.13.4-otp-23
1.13.4-otp-24
main
main-otp-22
main-otp-23
main-otp-24
master
master-otp-21
master-otp-22
master-otp-23
master-otp-24

The version I would use…

1.13.4-otp-24
1 Like