error: Uncaught (in promise) { foo: Error at file:///[WILDCARD]/main.ts:2:8 }