Error occurred while trying to proxy: localhost:3000/

I’m using ddev as local dev environment.

I made a fresh setup in this git repo:
https://github.com/herrpatrickmueller/wordpress.test

  1. Check out the repo in branch main
  2. Install composer dependencies for bedrock in document root composer install
  3. Edit the .env file to connect to the db
  4. change into the them dir web/app/themes/test
  5. install composer dependencies composer install
  6. install npm dependencies with node v16 npm ci
  7. run dev server npm run dev

Now everything should work as expected and the localhost is proxied to wordpress.test. Now change you local node version to v18. Checkout the branch node18, remove node_modules and install all npm dependencies with npm ci.

If you now run npm run dev the proxy fails. Can you reproduce this on your side? I don’t now how to make a running development environment to share with you.