Comments (10)
I noticed you started on that. Very appreciated. It's still in draft mode though, does it need more work or just testing?
It does look like it's not backwards compatible. I will test to make sure, but if not I will definitely want to make it a separate release.
from live_admin.
I have synced up my fork + branch, and it's still working on lv 18
Since I am using it with a surface app in an umbrella and surface has to catchup to recent lv releases i have pinned to 0.18.4
for now - but will relax back to 0.18.x
when its updated working
I have a few other feature ideas/requests in the meantime!
from live_admin.
This branch almost works with Phoenix 1.7 - there is just an issue with missing router helpers as the default config no longer includes them. I've created an issue here: #19
from live_admin.
Main has been updated to use 0.18. If you can, please try it out and let me know if there are any issues.
from live_admin.
Hey there! Just providing more data points here.
I just tried to pull this into an app with Phoenix 1.7 and LiveView 0.18.3 and got
== Compilation error in file lib/live_admin/router.ex ==
** (CompileError) lib/live_admin/router.ex:2: cannot import Phoenix.LiveView.assign/2 because it is undefined or private
(elixir 1.14.2) src/elixir_import.erl:91: :elixir_import.calculate/6
(elixir 1.14.2) src/elixir_import.erl:22: :elixir_import.import/4
After switching the dependency to main I get
== Compilation error in file lib/live_admin/view.ex ==
** (CompileError) lib/live_admin/view.ex:4: module Phoenix.View is not loaded and could not be found
(elixir 1.14.2) expanding macro: Kernel.use/2
lib/live_admin/view.ex:4: LiveAdmin.View (module)
from live_admin.
Hm I am using main with an app running Phoenix 1.6 and 0.18 and it appears to compile just fine. So it sounds like neither the latest release (0.6) nor main is compatible with Phoenix 1.7? But I would be surprised if that update contains breaking changes. I am only aware of deprecations.
from live_admin.
Looks like you might be use
ing it? Maybe that macro went away?
This is from the 1.7-rc release notes https://www.phoenixframework.org/blog/phoenix-1.7-released
New applications (and the phx generators), remove Phoenix.View as a dependency in favor of a new Phoenix.Template dependency, which uses function components as the basis for all rendering in the framework.
from live_admin.
Oh! I don't even have phoenix_view as a dependency. My guess is that became an optional dependency in favor of Phoenix.Template
? I'll try adding that and see if it works.
from live_admin.
OK manually adding phoenix_view
2.0.2 as a dependency fixes that, but now I'm getting the nil.home_path
mentioned in #19. I'm building from main:
* live_admin 0.6.0 (https://github.com/tfwright/live_admin.git) (mix)
locked at 3692b99
ok
from live_admin.
@dantswain I opened #20 to eventually remove the use of router helpers, but for now you should be able to use the helpers: true
option in your router.
Let me know if you have any other issues.
from live_admin.
Related Issues (20)
- Fix field_class form Ecto.UUID HOT 1
- BUG: Ecto.Enum no longer selects? HOT 2
- live_admin route throws "invalid resource" HOT 2
- Move prefix options to repo function
- function xxx.__live_admin_config__/1 is undefined or private HOT 1
- function nil.all/2 is undefined HOT 2
- Issue with search_select HOT 1
- Feature requests HOT 4
- Expand documentation HOT 1
- CI improvements
- foreign key fields skip `render_field` HOT 1
- :locale not found in: nil HOT 8
- Infinity Reload because of session HOT 5
- Array values getting dropped HOT 17
- Error when not using prefix - function nil.all/2 is undefined HOT 8
- Deprecation Warning HOT 1
- Managing Associations within Parent Forms HOT 1
- "New" button is still rendered with create_with: nil or create_with: false HOT 3
- Some README suggestions HOT 2
- Add Bandit Support HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from live_admin.