upstash / redis-js

HTTP based Redis Client for Serverless and Edge Functions
https://docs.upstash.com/redis
MIT License
668 stars 51 forks source link

issue with npm install #1231

Closed dragonjhlee closed 1 month ago

dragonjhlee commented 1 month ago

Hello, I keep facing the issue with the below error with npm install on my local after I run npm install @upstash/redis although this error is being bypassed with yarn install

node_modules/@upstash/redis/zmscore-uDFFyCiZ.d.ts:283:5 - error TS5084: Tuple members must all have names or all not have names.

283     ...TRest

Since my code is already set up with npm (no issue without this new dependency), it is hard to change everything with yarn only for this dependency. Do you have any clue how to make it work with npm?

Thanks!

ogzhanolguncu commented 1 month ago

I don't know why this happens, but I don't think it's related with the SDK. Maybe clean install would work. Please, remove your lock file and node_module, then run tsc using your current package manager to check the types in your project. Also, if you think you have a problematic code that needs to be fixing please do share with us.

dragonjhlee commented 1 month ago

Hi @ogzhanolguncu Okay after I removed the lock file, that issue is resolved.

Thanks for the prompt response.

ogzhanolguncu commented 1 month ago

Let us know if you need further help.