Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Class 'Dotenv\Repository\RepositoryBuilder' not found #36062

Closed
ZUBAT opened this issue Jan 27, 2021 · 2 comments
Closed

Error: Class 'Dotenv\Repository\RepositoryBuilder' not found #36062

ZUBAT opened this issue Jan 27, 2021 · 2 comments

Comments

@ZUBAT
Copy link

ZUBAT commented Jan 27, 2021

  • Laravel Version: 8.25.0
  • PHP Version: 7.3.6
  • Database Driver & Version:

Description:

after clear install (laravel new) catch error

Illuminate\Foundation\ComposerScripts::postAutoloadDump
composer/package-versions-deprecated: Generating version class...
composer/package-versions-deprecated: ...done generating version class
PHP Fatal error: Uncaught Error: Class 'Dotenv\Repository\RepositoryBuilder' not found in \vendor\laravel\framework\src\Illuminate\Support\Env.php:55
Stack trace:
#0 \vendor\laravel\framework\src\Illuminate\Support\Env.php(76): Illuminate\Support\Env::getRepository()
#1 \vendor\laravel\framework\src\Illuminate\Foundation\Application.php(1052): Illuminate\Support\Env::get('APP_SERVICES_CA...')
#2 vendor\laravel\framework\src\Illuminate\Foundation\Application.php(970): Illuminate\Foundation\Application->normalizeCachePath('APP_SERVICES_CA...', 'cache/services....')
#3 vendor\laravel\framework\src\Illuminate\Foundation\ComposerScripts.php(57): Illuminate\Foundation\Application->getCachedServicesPath()
#4 vendor\laravel\framework\src\Illuminate\Foundation\ComposerScripts.php(45): Illuminate\Foundation\ComposerScripts::clearCompiled()
#5 phar://C:/ProgramData/ComposerSetup/bin/com in vendor\laravel\framework\src\Illuminate\Support\Env.php on line 55

Fatal error: Uncaught Error: Class 'Dotenv\Repository\RepositoryBuilder' not found in vendor\laravel\framework\src\Illuminate\Support\Env.php:55
Stack trace:
#0 vendor\laravel\framework\src\Illuminate\Support\Env.php(76): Illuminate\Support\Env::getRepository()
#1 vendor\laravel\framework\src\Illuminate\Foundation\Application.php(1052): Illuminate\Support\Env::get('APP_SERVICES_CA...')
#2 vendor\laravel\framework\src\Illuminate\Foundation\Application.php(970): Illuminate\Foundation\Application->normalizeCachePath('APP_SERVICES_CA...', 'cache/services....')
#3 vendor\laravel\framework\src\Illuminate\Foundation\ComposerScripts.php(57): Illuminate\Foundation\Application->getCachedServicesPath()
#4 vendor\laravel\framework\src\Illuminate\Foundation\ComposerScripts.php(45): Illuminate\Foundation\ComposerScripts::clearCompiled()
#5 phar://C:/ProgramData/ComposerSetup/bin/com in
\vendor\laravel\framework\src\Illuminate\Support\Env.php on line 55

Steps To Reproduce:

laravel new app

@taylorotwell
Copy link
Member

Working fine for me.

@jpjadeja777
Copy link

what's the step of resolved this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants