This topic discusses a solution when your web browser displays a "Cannot proxy to" and the console displays an ENOTFOUND
error when using Magento Progressive Web App (PWA) Studio.
Affected products and versions
- Magento PWA Studio
Issue
Step to reproduce
- Load your Magento store in a browser.
Expected result
- The Magento store loads normally in your browser.
Actual result
- Your web browser displays the “Cannot proxy to“ error and the console displays an
ENOTFOUND
error.
Cause
NodeJS cannot resolve the hostname of your Magento store.
Solution
- Make sure your Magento store loads in more than one web browser.
- If you are running a local DNS server or VPN, add an entry to your hostfile (located in
/etc/hosts
) and manually map this domain (Generic instructions on hostfile editing) so NodeJS can resolve it.