2 ms·you have to execute it like this: await foo(); Then you will see the errorby WolfOliver 5y agoyou have to execute it like this: await foo(); Then you will see the error