redis / ioredis

🚀 A robust, performance-focused, and full-featured Redis client for Node.js.
MIT License
14.44k stars 1.2k forks source link

Unable to use ioredis in an ESNext module #1895

Open khemebuen opened 6 months ago

khemebuen commented 6 months ago

I used npx tdx to create a node package. When I add ioredis and use the redis.hgetall command, upon build I get a typescript Error semantic error TS2339: Property 'hgetall' does not exist on type 'Redis'.

JatSh1804 commented 5 months ago

Mp you'll have to use correct Import statement for ESNext module.