Skip to content

Couldn't compile module in magento 2.4.5-p12 #2

@andreaserafin99

Description

@andreaserafin99

Current version of Magento 2.4.5-p12
php version: 8.1.16

When I run command php bin/magento setup:di:compile to step 5 I get this error:

Call to undefined method ReflectionUnionType::isBuiltin()#0 /var/www/vendor/magento/framework/Code/Reader/ArgumentsReader.php(111): Laminas\Code\Reflection\ParameterReflection->detectType()
#1 /var/www/vendor/magento/framework/Code/Reader/ArgumentsReader.php(88): Magento\Framework\Code\Reader\ArgumentsReader->processType(Object(ReflectionClass), Object(Laminas\Code\Reflection\ParameterReflection))
#2 /var/www/vendor/magento/framework/Code/Validator/ConstructorIntegrity.php(48): Magento\Framework\Code\Reader\ArgumentsReader->getConstructorArguments(Object(ReflectionClass), true, true)
#3 /var/www/vendor/magento/framework/Code/Validator.php(36): Magento\Framework\Code\Validator\ConstructorIntegrity->validate('MageOS\\PageBuil...')
#4 /var/www/setup/src/Magento/Setup/Module/Di/Code/Reader/Decorator/Interceptions.php(75): Magento\Framework\Code\Validator->validate('MageOS\\PageBuil...')
#5 /var/www/setup/src/Magento/Setup/Module/Di/App/Task/Operation/InterceptionCache.php(61): Magento\Setup\Module\Di\Code\Reader\Decorator\Interceptions->getList('/var/www/vendor...')
#6 /var/www/setup/src/Magento/Setup/Module/Di/App/Task/Manager.php(56): Magento\Setup\Module\Di\App\Task\Operation\InterceptionCache->doOperation()
#7 /var/www/setup/src/Magento/Setup/Console/Command/DiCompileCommand.php(216): Magento\Setup\Module\Di\App\Task\Manager->process(Object(Closure), Object(Closure))
#8 /var/www/vendor/symfony/console/Command/Command.php(298): Magento\Setup\Console\Command\DiCompileCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#9 /var/www/vendor/symfony/console/Application.php(1040): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#10 /var/www/vendor/symfony/console/Application.php(301): Symfony\Component\Console\Application->doRunCommand(Object(Magento\Setup\Console\Command\DiCompileCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#11 /var/www/vendor/magento/framework/Console/Cli.php(116): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#12 /var/www/vendor/symfony/console/Application.php(171): Magento\Framework\Console\Cli->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#13 /var/www/bin/magento(23): Symfony\Component\Console\Application->run()
#14 {main}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions