laravel / nova-issues

554 stars 34 forks source link

After upgrading nova 3 to nova 4 [nova has been stop working] #5564

Closed YatriYudiz closed 1 year ago

YatriYudiz commented 1 year ago

Description:

Composer.json

{
    "name": "laravel/laravel",
    "type": "project",
    "description": "The Laravel Framework.",
    "keywords": [
        "framework",
        "laravel"
    ],
    "license": "MIT",
    "require": {
        "php": "^8.1",
        "ext-json": "*",
        "ext-mysqli": "*",
        "aporat/store-receipt-validator": "^3.4",
        "digitalcloud/nova-custom-views": "^1.7",
        "dkulyk/nova-tabs": "^1.1",
        "doctrine/dbal": "~2.3",
        "fideloper/proxy": "^4.2",
        "fruitcake/laravel-cors": "^1.0",
        "genealabs/laravel-mixpanel": "*",
        "guzzlehttp/guzzle": "^6.3",
        "infyomlabs/laravel-generator": "8.0.x-dev",
        "kirschbaum-development/nova-inline-relationship": "^0.3.0",
        "laravel/framework": "^8.0",
        "laravel/nova": "^4.24",
        "laravel/tinker": "^2.5",
        "laravel/ui": "^3.0",
        "laravelcollective/html": "^6.1",
        "nesbot/carbon": "^2.19",
        "nova-custom-views/child-user-views": "dev-feature/nova-version",
        "nova-custom-views/item-views": "dev-feature/nova-version",
        "nova-custom-views/user-views": "dev-feature/nova-version",
        "predis/predis": "^1.1",
        "s-ichikawa/laravel-sendgrid-driver": "^2.0",
        "sendgrid/sendgrid": "^7.3",
        "sentry/sentry-laravel": "^2.1",
        "superbalist/laravel-google-cloud-storage": "^2.2",
        "veritas/child-lesson": "*",
        "webpatser/laravel-uuid": "^4.0"
    },
    "require-dev": {
        "facade/ignition": "^2.0",
        "fzaninotto/faker": "^1.9.1",
        "mockery/mockery": "^1.3.1",
        "nunomaduro/collision": "^4.1",
        "phpunit/phpunit": "^8.5",
        "friendsofphp/php-cs-fixer": "^3.0"
    },
    "config": {
        "optimize-autoloader": true,
        "preferred-install": "dist",
        "sort-packages": true,
        "allow-plugins": {
            "php-http/discovery": true
        }
    },
    "extra": {
        "laravel": {
            "dont-discover": []
        }
    },
    "autoload": {
        "psr-4": {
            "App\\": "app/"
        },
        "classmap": [
            "database/seeds",
            "database/factories"
        ]
    },
    "autoload-dev": {
        "psr-4": {
            "Tests\\": "tests/"
        }
    },
    "minimum-stability": "dev",
    "prefer-stable": true,
    "scripts": {
        "post-autoload-dump": [
            "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
            "@php artisan package:discover --ansi"
        ],
        "post-root-package-install": [
            "@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
        ],
        "post-create-project-cmd": [
            "@php artisan key:generate --ansi"
        ],
        "cs": "vendor/bin/php-cs-fixer fix --dry-run --diff --config=.php-cs-fixer.dist.php --using-cache=no -v --ansi",
        "cs-fix": "vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.dist.php --using-cache=no -v --ansi",
        "phpmd": "vendor/bin/phpmd app text phpmd.xml",
        "phpmd-report": "vendor/bin/phpmd app html phpmd.xml --reportfile phpmd/index.html --ignore-violations-on-exit && open phpmd/index.html",
        "test": "vendor/bin/phpunit --colors -dmemory_limit=-1"
    },
    "repositories": [
        {
            "type": "composer",
            "url": "https://nova.laravel.com"
        },
        {
            "type": "vcs",
            "url": "https://github.com/vniko/nova-custom-views"
        },
        {
            "type": "path",
            "url": "./nova-components/views/user"
        },
        {
            "type": "path",
            "url": "./nova-components/views/item"
        },
        {
            "type": "path",
            "url": "./nova-components/views/child-user"
        },
        {
            "type": "path",
            "url": "./nova-components/ChildLesson"
        }
    ]
}

`

Detailed steps to reproduce the issue on a fresh Nova installation:

when ever I hit http://127.0.0.1:8000/nova/dashboards/main it throws below error.

GET http://127.0.0.1:8000/nova/dashboards/main 404 (Not Found)
app.js:416 [NOVA] Initiating Nova countdown...
app.js:416 [NOVA] We have lift off!
nova-inline-relationship:1 Uncaught TypeError: window.Vue.component is not a function
    at Module.fb15 (nova-inline-relationship:1:124850)
    at n (nova-inline-relationship:1:90003)
    at t.exports.02f4 (nova-inline-relationship:1:90802)
    at Object.<anonymous> (nova-inline-relationship:1:90816)
    at n (nova-inline-relationship:1:110)
    at Object.<anonymous> (nova-inline-relationship:1:5597)
    at n (nova-inline-relationship:1:110)
    at Object.<anonymous> (nova-inline-relationship:1:5445)
    at n (nova-inline-relationship:1:110)
    at nova-inline-relationship:1:1466

Screenshot 2023-05-24 at 12 48 36 PM

And in terminal When I hit artisan command

Php artisan route:list it give the error

` Illuminate\Contracts\Container\BindingResolutionException

Target class [App\Http\Controllers\API\ ] does not exist.

at vendor/laravel/framework/src/Illuminate/Container/Container.php:879 875| 876| try { 877| $reflector = new ReflectionClass($concrete); 878| } catch (ReflectionException $e) {

879| throw new BindingResolutionException("Target class [$concrete] does not exist.", 0, $e); 880| } 881| 882| // If the type is not instantiable, the developer is attempting to resolve 883| // an abstract type such as an Interface or Abstract Class and there is

1 [internal]:0 Illuminate\Foundation\Console\RouteListCommand::Illuminate\Foundation\Console{closure}(Object(Illuminate\Routing\Route))

  +13 vendor frames 

15 [internal]:0 Illuminate\Foundation\Console\RouteListCommand::Illuminate\Foundation\Console{closure}(Object(Illuminate\Routing\Route))`

I have tried every thing.

add novaserviceprovide in config/app.php file also. clear all cache hit command for it. composer dump-autoload tried

nothing works for me.

crynobone commented 1 year ago

We don't provide support for 3rd party packages. You need to replace the unsupported packages or avoid using them.