:mnesia.table() and :mnesia.create_option() types not recognized

Try adding

dialyzer: [
        plt_add_apps: [:mnesia]
      ]

in the project settings of mix.exs.