sindresorhus / ora

Elegant terminal spinner
MIT License
9.08k stars 269 forks source link

Can't compile from typescript #207

Closed rgarcia-longevo closed 2 years ago

rgarcia-longevo commented 2 years ago

Hello, Team.

I'm trying to use Ora from a typescript app and it doesn't compile. The error

Screen Shot 2022-05-16 at 00 00 20

it happens when I try to import the library

Screen Shot 2022-05-16 at 00 01 38

I'm using the following versions: ora: 6.0.1 typescript: 4.2.2 ts-node: 10.0.0

Thank you for this awesome library!

sindresorhus commented 2 years ago

https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c

You also need TypeScript 4.7.

Alternatively, use Ora v5 instead.

rgarcia-longevo commented 2 years ago

Thank you so much! It's resolved!