Troubleshooting

PWA build fails

If this command fails:

yarn run build

The installed Node modules are probably outdated relative to your code (the Git HEAD pointer).

cd /path/to/project
rm -rf node_modules
yarn install
yarn run build

Browser doesn’t trust the certificate

For macOS, delete the devcert directory. PWA Buildpack will regenerate certificates and fix the issue.

cd ~/Library/Application\ Support/
rm -rf devcert

Reference: Magento PWA Docs — PWA Buildpack Troubleshooting