However, without typescript, it is working.