I am working on a project using Local connected to WP Engine and a git repo on top. The first time I create the site in Local and pull the database down, and then add the git repo with git remote add origin it runs smoothly. However, any time I pull from Local after that it breaks Webpack and I get the following when trying to run npm start:
Error: Cannot find module ‘C:\Users\ryan\Local Sites\site-name\app\public\node_modules\webpack\bin\webpack.js’
Every time I do a pull in Local is seems to empty the webpack directory in node_moules.
Does this happen for all sites in Local, or just one in particular?
This is the first site I have worked on using Local.
Are you able to create a new, plain WordPress site in Local and access it in a Browser?
Running Local 6.1.1+5468 on
Running on Windows 10 Pro (version 20H2)