GithubHelp home page GithubHelp logo

Error when running about demo HOT 3 CLOSED

yiisoft avatar yiisoft commented on July 20, 2024
Error when running

from demo.

Comments (3)

samdark avatar samdark commented on July 20, 2024

Run composer du once. We're aware of it: yiisoft/composer-config-plugin#21

from demo.

fjrid avatar fjrid commented on July 20, 2024

I got the same error like this after reinstalling, and running composer du command

Fatal error: Uncaught RuntimeException: Alias of the root directory is not defined. in D:\Project\app\runtime\build\config\web.php:58 Stack trace: #0 D:\Project\app\vendor\yiisoft\factory\src\Definitions\CallableDefinition.php(19): {closure}(Object(Yiisoft\Di\CompositeContainer)) #1 D:\Project\app\vendor\yiisoft\di\src\Container.php(214): Yiisoft\Factory\Definitions\CallableDefinition->resolve(Object(Yiisoft\Di\CompositeContainer)) #2 D:\Project\app\vendor\yiisoft\di\src\Container.php(155): Yiisoft\Di\Container->buildInternal('Yiisoft\\Yii\\Fil...') #3 D:\Project\app\vendor\yiisoft\di\src\Container.php(88): Yiisoft\Di\Container->build('Yiisoft\\Yii\\Fil...') #4 D:\Project\app\vendor\yiisoft\yii-debug\src\Proxy\ContainerInterfaceProxy.php(171): Yiisoft\Di\Container->get('Yiisoft\\Yii\\Fil...') #5 D:\Project\app\vendor\yiisoft\yii-debug\src\Proxy\ContainerInterfaceProxy.php(56): Yiisoft\Yii\Debug\Proxy\ContainerInterfaceProxy->getInstance('Yiisoft\\Yii\\F in D:\Project\app\runtime\build\config\web.php on line 58

from demo.

fjrid avatar fjrid commented on July 20, 2024

I have fixed this problem with change ./runtime/build/config/web.php. I moved $params = (array) require __DIR__ . '/params.php'; in the bottom of $_ENV = array_merge((array) require __DIR__ . '/envs.php', $_ENV); (idk why this can be happen). I also changed 'Yiisoft\\Yii\\Cycle\\Conveyor\\SchemaConveyorInterface' from &$params to $params.

from demo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.