TypeError: Cannot convert undefined or null to object at Object

What issue or error are you experiencing?

Initially when I start a new site there are no issues. But immediately after starting the site again i get this error message:
TypeError: Cannot convert undefined or null to object

at Object.entries ()

at PortsService. (/Applications/Local.app/Contents/Resources/app.asar/main/sites/PortsService.js:107:62)

at Generator.next ()

at /Applications/Local.app/Contents/Resources/app.asar/main/sites/PortsService.js:8:71

at new Promise ()

at __awaiter (/Applications/Local.app/Contents/Resources/app.asar/main/sites/PortsService.js:4:12)

at PortsService.checkAndReplaceUnavailablePorts (/Applications/Local.app/Contents/Resources/app.asar/main/sites/PortsService.js:101:16)

at SiteProcessManagerService. (/Applications/Local.app/Contents/Resources/app.asar/main/sites/SiteProcessManagerService.js:272:57)

at Generator.next ()

at fulfilled (/Applications/Local.app/Contents/Resources/app.asar/main/sites/SiteProcessManagerService.js:5:58)


What steps can be taken to replicate the issue? Feel free to include screenshots, videos, etc

Im not quite sure where to go next. I tried to start a new site to test the issue. I found that the same thing happens, it works fine initially but after stopping the site it wont start back up again.


System Details

  • Local Version: not sure but i just downloaded from the site today.

  • Operating System (OS) and OS version: Mac OS Monterey 12.7.1


Local Logs

local-lightning.log (134.0 KB)

Attach your Local Logs here (Help Doc - Retrieving Local’s Log)


Security Reminder
Local does a pretty good job of scrubbing private info from the logs and the errors it produces, however there’s always the possibility that something private can come through. Because these are public forums, always review the screenshots you are sharing to make sure there isn’t private info like passwords being displayed.

my version is 9.2.7

Thank you for this report, @ajlocal.

Please can you try the steps here?

https://community.localwp.com/t/local-v9-2-7-fails-on-intel-mac-missing-mailpit-architecture-detection-error/51269/3