Open debonair opened 6 years ago
I have the same issue. Using it with an umbrella project with Phoenix 1.3 and Elixir 1.4.
This is not an official fix, but if you are stuck like me and need a solution right now, here is one.
I found this closed PR
https://github.com/smpallen99/ex_admin/pull/388/files
You can make the same changes that he did, then recomplie the deps
mix deps.compile
then one more time try
mix admin.install
and you're good to go.
I think his PR was rejected because it breaks compatibility with previous phoenix versions. If you are only on 1.3 like me, I would say go ahead.
Actually, the fix I recommended is just for the install script. But since phoenix 1.3 is completely different, exadmin is broken even with that fix. The install script needs to be rewritten. So sorry guys, no quick solution for now.
I got the same issue with Phoenix 1.3.0 😢
Quick solution: mix admin.install --no-brunch
.
accessing the admin interface after that will still give you an error though.
Hello @franzejr , The error is still there when using --no-brunch also. I am getting ** (Mix) Can't find assets path! by manually create assets folder in the root the error still remains.
I worked around this error with ln -s assets/brunch-config.js .
. But still it created non compatible config, so I had to adjust it along Phoenix 1.3
Hi, @Kukunin Did you make it work. What work around did you do? I am still got stuck on the ** (Mix) Can't find assets path! My phoenix is generated using mix phx [project_name] --no-brunch I did create assets directory under the root path and web path (by creating web directory also to make it like phoenix 1.2).
If anybody have feedback please recommend.
Yeah, it made it work. Since the generator expects the Phoenix 1.2 file structure, you need to migrate everything to 1.3. I might be wrong since it was a month ago, but here is an idea.
It expects:
/brunch-config.js
/priv/static
folder/web
folderAfter it installs everything, use git diff
to find changes and migrate them onto 1.3 version:
/assets/brunch-config.js
/priv/static
to /assets
folder. In my case I have:
/assets/static/fonts/
/assets/static/images/
/assets/vendor/
<- js and css files here/web
to /lib/your_app_web
Here is my brunch-config.js
with ExAdmin support for a reference
On phoenix 1.3, when i run:
mix admin.install
I get :
** (Mix) Can't find brunch-config.js