The helper function `f` declared a parameter named `path` which shadowed the intended use of Node's `path.join()`. Since strings don't have a `.join` method, this caused a runtime TypeError before Electron could start. Fix: import `node:path` and rename the parameter to `p`.