Nova-BI / nova-dashboard-manager

Dashboard Manager for Laravel Nova
MIT License
21 stars 8 forks source link

Widgets section don't work after update #9

Closed keizah7 closed 3 years ago

keizah7 commented 3 years ago

Method DigitalCreative\InlineMorphTo\InlineMorphTo::typeUpdateable does not exist.

mdanro commented 3 years ago

Comment it out and will launch, however it depends on some fixed paths to the Models

keizah7 commented 3 years ago

I don't use this method by myself, it's package error #10

marispro commented 3 years ago

This is related to https://github.com/dcasia/nova-inline-morph-to/pull/25 where we added typeUpdateable method to allow update model data after creation. While pull request is not approved, we are using fork https://github.com/marispro/nova-inline-morph-to

Currently, we have this dependency attached through repositories: https://github.com/Nova-BI/nova-dashboard-manager/blob/main/composer.json image

But it is strange, that this dependency is not applied for you. Do you have "digital-creative/nova-inline-morph-to" package in your composer.json?

mdanro commented 3 years ago

I can confirm that the dependency exists but probably ignored: "digital-creative/nova-inline-morph-to": "dev-master",

"repositories": [
    {
        "type": "vcs",
        "url": "git@github.com:marispro/nova-inline-morph-to.git"
    } 
keizah7 commented 3 years ago

@marispro

"repositories": [
    {
        "type": "vcs",
        "url": "https://github.com/marispro/nova-inline-morph-to"
    }
]

I think you should create custom branch in marispro/nova-inline-morph-to And require it like this "digital-creative/nova-inline-morph-to": "dev-custom", Original package also has master branch, so maybe conflict is here. I had similar problem then used forked version of your project

marispro commented 3 years ago

@keizah7 thanks! Changed branch to dev-custom and updated dependecies on composer. Can you try update composer and look does it solve the problem?

keizah7 commented 3 years ago
Problem 1
    - Installation request for nova-bi/nova-dashboard-manager ^1.3 -> satisfiable by nova-bi/nova-dashboard-manager[1.3].
    - nova-bi/nova-dashboard-manager 1.3 requires digital-creative/nova-inline-morph-to dev-custom -> no matching package found.
marispro commented 3 years ago

Renamed branch from "custom" to "dev-custom", probably requires some time to drop composer cache or composer clearcache

keizah7 commented 3 years ago

It should work if your branch named custom. custom => dev-custom. If your branch is dev-custom, you should require dev-dev-custom.. You didn't changed repository url, maybe problem is here

marispro commented 3 years ago

@keizah7 Ok didn't know that. Changed back to custom. Custom is only branch here https://github.com/marispro/nova-inline-morph-to (renamed from master). What url need to be changed?

Thank you for help!

keizah7 commented 3 years ago
"repositories": [
    {
        "type": "vcs",
        "url": "https://github.com/marispro/nova-inline-morph-to"
    }
]

Try this one

marispro commented 3 years ago
"repositories": [
    {
        "type": "vcs",
        "url": "https://github.com/marispro/nova-inline-morph-to"
    }
]

Try this one

Changed

keizah7 commented 3 years ago

https://packagist.org/packages/nova-bi/nova-dashboard-manager where is v1.4? Sometimes need some time to wait

keizah7 commented 3 years ago
 Problem 1
    - Installation request for nova-bi/nova-dashboard-manager ^1.4 -> satisfiable by nova-bi/nova-dashboard-manager[1.4].
    - nova-bi/nova-dashboard-manager 1.4 requires digital-creative/nova-inline-morph-to dev-custom -> no matching package found.
mdanro commented 3 years ago

I have the same issue composer update nova-bi/nova-dashboard-manager --with-all-dependencies

Loading composer repositories with package information Updating dependencies Your requirements could not be resolved to an installable set of packages.

Problem 1

keizah7 commented 3 years ago

@mdanro

{
  "require": {
       "nova-bi/nova-dashboard-manager": "dev-main",
  }
  "repositories": [
       {
           "type": "vcs",
            "url": "https://github.com/keizah7/nova-dashboard-manager"
       }
  ]
}

composer update