You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
No definition or class found or resolvable for "Yiisoft\Translator\MessageReaderInterface" while building "Yiisoft\Translator\MessageReaderInterface".
#543
Closed
rossaddison opened this issue
Nov 8, 2022
· 1 comment
· Fixed by #544
I try to update composer.json to set up the newest version of package 1.2.0 and install requirements. But it does not help to fix this issue.
Problem 1
- Root composer.json requires yiisoft/di ^1.2.0 -> satisfiable by yiisoft/di[1.2.0].
- yiisoft/di 1.2.0 requires yiisoft/definitions ^3.0 -> found yiisoft/definitions[3.0.0, 3.0.1] but it conflicts with your root composer.json require (^2.1.0).
Problem 2
- yiisoft/di 1.2.0 requires yiisoft/definitions ^3.0 -> found yiisoft/definitions[3.0.0, 3.0.1] but it conflicts with your root composer.json require (^2.1.0).
- yiisoft/yii-testing dev-master requires yiisoft/di ^1.1 -> satisfiable by yiisoft/di[1.2.0].
- Root composer.json requires yiisoft/yii-testing dev-master -> satisfiable by yiisoft/yii-testing[dev-master].
What steps will reproduce the problem? Installing the demo
What is the expected result? The demo running
What do you get instead? The following stack trace.
Yiisoft\Di\NotFoundException: No definition or class found or resolvable for "Yiisoft\Translator\MessageReaderInterface" while building "Yiisoft\Translator\MessageReaderInterface". in C:\wamp64\www\yii-invoice6\vendor\yiisoft\di\src\Container.php:525
Stack trace:
#0 C:\wamp64\www\yii-invoice6\vendor\yiisoft\di\src\Container.php(487): Yiisoft\Di\Container->buildInternal('Yiisoft\Transla...')
#1 C:\wamp64\www\yii-invoice6\vendor\yiisoft\di\src\Container.php(137): Yiisoft\Di\Container->build('Yiisoft\Transla...')
#2 C:\wamp64\www\yii-invoice6\vendor\yiisoft\yii-debug\src\Collector\ContainerInterfaceProxy.php(79): Yiisoft\Di\Container->get('Yiisoft\Transla...')
#3 C:\wamp64\www\yii-invoice6\vendor\yiisoft\yii-debug\src\Collector\ContainerInterfaceProxy.php(59): Yiisoft\Yii\Debug\Collector\ContainerInterfaceProxy->getInstance('Yiisoft\Transla...')
#4 C:\wamp64\www\yii-invoice6\vendor\yiisoft\translator\config\common.php(28): Yiisoft\Yii\Debug\Collector\ContainerInterfaceProxy->get('Yiisoft\Transla...')
#5 [internal function]: Yiisoft\Config\Config::{closure}(Object(Yiisoft\Yii\Debug\Collector\ContainerInterfaceProxy))
#6 C:\wamp64\www\yii-invoice6\vendor\yiisoft\definitions\src\CallableDefinition.php(59): ReflectionFunction->invokeArgs(Array)
#7 C:\wamp64\www\yii-invoice6\vendor\yiisoft\di\src\Container.php(522): Yiisoft\Definitions\CallableDefinition->resolve(Object(Yiisoft\Yii\Debug\Collector\ContainerInterfaceProxy))
#8 C:\wamp64\www\yii-invoice6\vendor\yiisoft\di\src\Container.php(487): Yiisoft\Di\Container->buildInternal('DefaultCategory...')
#9 C:\wamp64\www\yii-invoice6\vendor\yiisoft\di\src\Container.php(137): Yiisoft\Di\Container->build('DefaultCategory...')
#10 C:\wamp64\www\yii-invoice6\vendor\yiisoft\yii-debug\src\Collector\ContainerInterfaceProxy.php(79): Yiisoft\Di\Container->get('DefaultCategory...')
#11 C:\wamp64\www\yii-invoice6\vendor\yiisoft\yii-debug\src\Collector\ContainerInterfaceProxy.php(59): Yiisoft\Yii\Debug\Collector\ContainerInterfaceProxy->getInstance('DefaultCategory...')
#12 C:\wamp64\www\yii-invoice6\vendor\yiisoft\definitions\src\Reference.php(71): Yiisoft\Yii\Debug\Collector\ContainerInterfaceProxy->get('DefaultCategory...')
#13 C:\wamp64\www\yii-invoice6\vendor\yiisoft\definitions\src\Helpers\DefinitionResolver.php(66): Yiisoft\Definitions\Reference->resolve(Object(Yiisoft\Yii\Debug\Collector\ContainerInterfaceProxy))
#14 C:\wamp64\www\yii-invoice6\vendor\yiisoft\definitions\src\Helpers\DefinitionResolver.php(46): Yiisoft\Definitions\Helpers\DefinitionResolver::resolve(Object(Yiisoft\Yii\Debug\Collector\ContainerInterfaceProxy), NULL, Object(Yiisoft\Definitions\Reference))
#15 C:\wamp64\www\yii-invoice6\vendor\yiisoft\definitions\src\Helpers\DefinitionResolver.php(69): Yiisoft\Definitions\Helpers\DefinitionResolver::resolveArray(Object(Yiisoft\Yii\Debug\Collector\ContainerInterfaceProxy), NULL, Array)
#16 C:\wamp64\www\yii-invoice6\vendor\yiisoft\definitions\src\Helpers\DefinitionResolver.php(46): Yiisoft\Definitions\Helpers\DefinitionResolver::resolve(Object(Yiisoft\Yii\Debug\Collector\ContainerInterfaceProxy), NULL, Array)
#17 C:\wamp64\www\yii-invoice6\vendor\yiisoft\definitions\src\Helpers\DefinitionResolver.php(69): Yiisoft\Definitions\Helpers\DefinitionResolver::resolveArray(Object(Yiisoft\Yii\Debug\Collector\ContainerInterfaceProxy), NULL, Array)
#18 C:\wamp64\www\yii-invoice6\vendor\yiisoft\definitions\src\ArrayDefinition.php(156): Yiisoft\Definitions\Helpers\DefinitionResolver::resolve(Object(Yiisoft\Yii\Debug\Collector\ContainerInterfaceProxy), NULL, Array)
#19 C:\wamp64\www\yii-invoice6\vendor\yiisoft\di\src\Container.php(522): Yiisoft\Definitions\ArrayDefinition->resolve(Object(Yiisoft\Yii\Debug\Collector\ContainerInterfaceProxy))
#20 C:\wamp64\www\yii-invoice6\vendor\yiisoft\di\src\Container.php(487): Yiisoft\Di\Container->buildInternal('Yiisoft\Transla...')
#21 C:\wamp64\www\yii-invoice6\vendor\yiisoft\di\src\Container.php(137): Yiisoft\Di\Container->build('Yiisoft\Transla...')
#22 C:\wamp64\www\yii-invoice6\vendor\yiisoft\yii-debug\src\Collector\ContainerInterfaceProxy.php(79): Yiisoft\Di\Container->get('Yiisoft\Transla...')
#23 C:\wamp64\www\yii-invoice6\vendor\yiisoft\yii-debug\src\Collector\ContainerInterfaceProxy.php(59): Yiisoft\Yii\Debug\Collector\ContainerInterfaceProxy->getInstance('Yiisoft\Transla...')
#24 C:\wamp64\www\yii-invoice6\vendor\yiisoft\definitions\src\Reference.php(71): Yiisoft\Yii\Debug\Collector\ContainerInterfaceProxy->get('Yiisoft\Transla...')
#25 C:\wamp64\www\yii-invoice6\vendor\yiisoft\definitions\src\Helpers\DefinitionResolver.php(66): Yiisoft\Definitions\Reference->resolve(Object(Yiisoft\Yii\Debug\Collector\ContainerInterfaceProxy))
#26 C:\wamp64\www\yii-invoice6\vendor\yiisoft\definitions\src\Helpers\DefinitionResolver.php(46): Yiisoft\Definitions\Helpers\DefinitionResolver::resolve(Object(Yiisoft\Yii\Debug\Collector\ContainerInterfaceProxy), NULL, Object(Yiisoft\Definitions\Reference))
#27 C:\wamp64\www\yii-invoice6\vendor\yiisoft\definitions\src\Helpers\DefinitionResolver.php(69): Yiisoft\Definitions\Helpers\DefinitionResolver::resolveArray(Object(Yiisoft\Yii\Debug\Collector\ContainerInterfaceProxy), NULL, Array)
#28 C:\wamp64\www\yii-invoice6\vendor\yiisoft\definitions\src\Helpers\DefinitionResolver.php(46): Yiisoft\Definitions\Helpers\DefinitionResolver::resolve(Object(Yiisoft\Yii\Debug\Collector\ContainerInterfaceProxy), NULL, Array)
#29 C:\wamp64\www\yii-invoice6\vendor\yiisoft\definitions\src\Helpers\DefinitionResolver.php(69): Yiisoft\Definitions\Helpers\DefinitionResolver::resolveArray(Object(Yiisoft\Yii\Debug\Collector\ContainerInterfaceProxy), NULL, Array)
#30 C:\wamp64\www\yii-invoice6\vendor\yiisoft\definitions\src\ArrayDefinition.php(156): Yiisoft\Definitions\Helpers\DefinitionResolver::resolve(Object(Yiisoft\Yii\Debug\Collector\ContainerInterfaceProxy), NULL, Array)
#31 C:\wamp64\www\yii-invoice6\vendor\yiisoft\di\src\Container.php(522): Yiisoft\Definitions\ArrayDefinition->resolve(Object(Yiisoft\Yii\Debug\Collector\ContainerInterfaceProxy))
#32 C:\wamp64\www\yii-invoice6\vendor\yiisoft\di\src\Container.php(487): Yiisoft\Di\Container->buildInternal('Yiisoft\View\We...')
#33 C:\wamp64\www\yii-invoice6\vendor\yiisoft\di\src\Container.php(137): Yiisoft\Di\Container->build('Yiisoft\View\We...')
#34 C:\wamp64\www\yii-invoice6\vendor\yiisoft\yii-debug\src\Collector\ContainerInterfaceProxy.php(79): Yiisoft\Di\Container->get('Yiisoft\View\We...')
#35 C:\wamp64\www\yii-invoice6\vendor\yiisoft\yii-debug\src\Collector\ContainerInterfaceProxy.php(59): Yiisoft\Yii\Debug\Collector\ContainerInterfaceProxy->getInstance('Yiisoft\View\We...')
#36 C:\wamp64\www\yii-invoice6\vendor\yiisoft\definitions\src\ParameterDefinition.php(83): Yiisoft\Yii\Debug\Collector\ContainerInterfaceProxy->get('Yiisoft\View\We...')
#37 C:\wamp64\www\yii-invoice6\vendor\yiisoft\definitions\src\Helpers\DefinitionResolver.php(66): Yiisoft\Definitions\ParameterDefinition->resolve(Object(Yiisoft\Yii\Debug\Collector\ContainerInterfaceProxy))
#38 C:\wamp64\www\yii-invoice6\vendor\yiisoft\definitions\src\Helpers\DefinitionResolver.php(46): Yiisoft\Definitions\Helpers\DefinitionResolver::resolve(Object(Yiisoft\Yii\Debug\Collector\ContainerInterfaceProxy), NULL, Object(Yiisoft\Definitions\ParameterDefinition))
#39 C:\wamp64\www\yii-invoice6\vendor\yiisoft\definitions\src\ArrayDefinition.php(147): Yiisoft\Definitions\Helpers\DefinitionResolver::resolveArray(Object(Yiisoft\Yii\Debug\Collector\ContainerInterfaceProxy), NULL, Array)
#40 C:\wamp64\www\yii-invoice6\vendor\yiisoft\di\src\Container.php(522): Yiisoft\Definitions\ArrayDefinition->resolve(Object(Yiisoft\Yii\Debug\Collector\ContainerInterfaceProxy))
#41 C:\wamp64\www\yii-invoice6\vendor\yiisoft\di\src\Container.php(487): Yiisoft\Di\Container->buildInternal('Yiisoft\Yii\Vie...')
#42 C:\wamp64\www\yii-invoice6\vendor\yiisoft\di\src\Container.php(137): Yiisoft\Di\Container->build('Yiisoft\Yii\Vie...')
#43 C:\wamp64\www\yii-invoice6\vendor\yiisoft\yii-debug\src\Collector\ContainerInterfaceProxy.php(79): Yiisoft\Di\Container->get('Yiisoft\Yii\Vie...')
#44 C:\wamp64\www\yii-invoice6\vendor\yiisoft\yii-debug\src\Collector\ContainerInterfaceProxy.php(59): Yiisoft\Yii\Debug\Collector\ContainerInterfaceProxy->getInstance('Yiisoft\Yii\Vie...')
#45 C:\wamp64\www\yii-invoice6\vendor\yiisoft\definitions\src\ParameterDefinition.php(83): Yiisoft\Yii\Debug\Collector\ContainerInterfaceProxy->get('Yiisoft\Yii\Vie...')
#46 C:\wamp64\www\yii-invoice6\vendor\yiisoft\definitions\src\Helpers\DefinitionResolver.php(66): Yiisoft\Definitions\ParameterDefinition->resolve(Object(Yiisoft\Yii\Debug\Collector\ContainerInterfaceProxy))
#47 C:\wamp64\www\yii-invoice6\vendor\yiisoft\definitions\src\Helpers\DefinitionResolver.php(46): Yiisoft\Definitions\Helpers\DefinitionResolver::resolve(Object(Yiisoft\Yii\Debug\Collector\ContainerInterfaceProxy), NULL, Object(Yiisoft\Definitions\ParameterDefinition))
#48 C:\wamp64\www\yii-invoice6\vendor\yiisoft\definitions\src\ArrayDefinition.php(147): Yiisoft\Definitions\Helpers\DefinitionResolver::resolveArray(Object(Yiisoft\Yii\Debug\Collector\ContainerInterfaceProxy), NULL, Array)
#49 C:\wamp64\www\yii-invoice6\vendor\yiisoft\di\src\Container.php(522): Yiisoft\Definitions\ArrayDefinition->resolve(Object(Yiisoft\Yii\Debug\Collector\ContainerInterfaceProxy))
#50 C:\wamp64\www\yii-invoice6\vendor\yiisoft\di\src\Container.php(487): Yiisoft\Di\Container->buildInternal('App\Handler\Not...')
#51 C:\wamp64\www\yii-invoice6\vendor\yiisoft\di\src\Container.php(137): Yiisoft\Di\Container->build('App\Handler\Not...')
#52 C:\wamp64\www\yii-invoice6\vendor\yiisoft\yii-debug\src\Collector\ContainerInterfaceProxy.php(79): Yiisoft\Di\Container->get('App\Handler\Not...')
#53 C:\wamp64\www\yii-invoice6\vendor\yiisoft\yii-debug\src\Collector\ContainerInterfaceProxy.php(59): Yiisoft\Yii\Debug\Collector\ContainerInterfaceProxy->getInstance('App\Handler\Not...')
#54 C:\wamp64\www\yii-invoice6\vendor\yiisoft\definitions\src\Reference.php(71): Yiisoft\Yii\Debug\Collector\ContainerInterfaceProxy->get('App\Handler\Not...')
#55 C:\wamp64\www\yii-invoice6\vendor\yiisoft\definitions\src\Helpers\DefinitionResolver.php(66): Yiisoft\Definitions\Reference->resolve(Object(Yiisoft\Yii\Debug\Collector\ContainerInterfaceProxy))
#56 C:\wamp64\www\yii-invoice6\vendor\yiisoft\definitions\src\Helpers\DefinitionResolver.php(46): Yiisoft\Definitions\Helpers\DefinitionResolver::resolve(Object(Yiisoft\Yii\Debug\Collector\ContainerInterfaceProxy), NULL, Object(Yiisoft\Definitions\Reference))
#57 C:\wamp64\www\yii-invoice6\vendor\yiisoft\definitions\src\ArrayDefinition.php(147): Yiisoft\Definitions\Helpers\DefinitionResolver::resolveArray(Object(Yiisoft\Yii\Debug\Collector\ContainerInterfaceProxy), NULL, Array)
#58 C:\wamp64\www\yii-invoice6\vendor\yiisoft\di\src\Container.php(522): Yiisoft\Definitions\ArrayDefinition->resolve(Object(Yiisoft\Yii\Debug\Collector\ContainerInterfaceProxy))
#59 C:\wamp64\www\yii-invoice6\vendor\yiisoft\di\src\Container.php(487): Yiisoft\Di\Container->buildInternal('Yiisoft\Yii\Htt...')
#60 C:\wamp64\www\yii-invoice6\vendor\yiisoft\di\src\Container.php(137): Yiisoft\Di\Container->build('Yiisoft\Yii\Htt...')
#61 C:\wamp64\www\yii-invoice6\vendor\yiisoft\yii-debug\src\Collector\ContainerInterfaceProxy.php(79): Yiisoft\Di\Container->get('Yiisoft\Yii\Htt...')
#62 C:\wamp64\www\yii-invoice6\vendor\yiisoft\yii-debug\src\Collector\ContainerInterfaceProxy.php(59): Yiisoft\Yii\Debug\Collector\ContainerInterfaceProxy->getInstance('Yiisoft\Yii\Htt...')
#63 C:\wamp64\www\yii-invoice6\vendor\yiisoft\yii-runner-http\src\HttpApplicationRunner.php(92): Yiisoft\Yii\Debug\Collector\ContainerInterfaceProxy->get('Yiisoft\Yii\Htt...')
#64 C:\wamp64\www\yii-invoice6\public\index.php(35): Yiisoft\Yii\Runner\Http\HttpApplicationRunner->run()
#65 {main}
Additional info
The text was updated successfully, but these errors were encountered: