In order to prevent Angular 2 from throwing exceptions, I must set either <base>
in the HTML or use APP_BASE_HREF
during bootstrap. However, if I do so, Electron throws exceptions in browser_adapter.ts
when attempting to match a route, as it thinks in terms of the file system:
ERROR: Unhandled Promise Rejection: Cannot find any routes. Current segment: 'C:'. Available routes: ['/dashboard', '/accounts'].
Even after trying to implement just the HashLocationStrategy
as suggested in this blog post, Angular still raises concerns about the base href not being properly configured.