Roots Discourse

Fatal error: Uncaught Error: Call to undefined method Dotenv\Dotenv::createImmutable() in /app/bedrock/config/application.php on line 35

Hi there,

I have just started with bedrock/composer. I am using it with Local by Flywheel on a WordPress website. I have installed some plugins via composer and when I go to the website I get the fatal error

Fatal error: Uncaught Error: Call to undefined method Dotenv\Dotenv::createImmutable() in /app/bedrock/config/application.php on line 35
Error: Call to undefined method Dotenv\Dotenv::createImmutable() in /app/bedrock/config/application.php on line 35

What could be causing the issue?

Thanks

Same with me. Anyone?