I’m using ddev as local dev environment.
I made a fresh setup in this git repo:
https://github.com/herrpatrickmueller/wordpress.test
- Check out the repo in branch
main
- Install composer dependencies for bedrock in document root
composer install
- Edit the .env file to connect to the db
- change into the them dir
web/app/themes/test
- install composer dependencies
composer install
- install npm dependencies with node v16
npm ci
- 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.