PHP Fatal error, Win11 Sage10 WSL

Hello
Im using Win11 with WSL.
I get this error when trying to set Sage up: PHP Fatal error: Uncaught Error: Call to undefined function public_path() in \themes\sage10\vendor\roots\acorn\config\assets.php:37

Any ideas?

Experimentation is not only a good way to debug, it can also be a good way to build a deeper understanding of the code involved–both yours and ours.

  • What approaches have you already tried to solve this problem?
  • What were the specific results of each attempt?
  • What do you think might be going wrong?
  1. composer create-project roots/sage your-theme-name dev-main
  2. composer require roots/acorn
  3. yarn
  4. update dev url in bud config
  5. yarn build

1 and 2 i did on my win machine. im using MAMP by the way. php 8.0
3 and 5 i did through ubuntu cmd

so going to devurl.test gave my that error.