Skip to content

Other modules fail to install with DiscordModule installed #2

Description

@Dunceantix

If you have the DiscordModule installed and then try to install another module (can be an official one) they fail to migrate the database correctly causing the other module to fail installation. If you remove the DiscordModule and repeat the installation of the other module it is successful. The below error is recieved when installing another module.

Type error: Too few arguments to function Nwidart\Modules\Migrations\Migrator::__construct(), 1 passed in /www/html/vendor/nwidart/laravel-modules/src/Commands/MigrateCommand.php on line 63 and at least 2 expected {"userId":2,"email":"my@email.co.uk","exception":"[object] (Symfony\\Component\\Debug\\Exception\\FatalThrowableError(code: 0): Type error: Too few arguments to function Nwidart\\Modules\\Migrations\\Migrator::__construct(), 1 passed in /www/html/vendor/nwidart/laravel-modules/src/Commands/MigrateCommand.php on line 63 and at least 2 expected at /www/html/Modules/Discord/vendor/nwidart/laravel-modules/src/Migrations/Migrator.php:47)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions