The problem was I had competing manifests due to using yarn and npm and npx. Steps to fix:
yarn
npm
npx
node_modules
package-lock.json
yarn.lock
yarn install
The project is now building and running again locally.