ArkerLabs / redisk

TypeScript ORM for Redis.
33 stars 8 forks source link

Not able to compile with Windows. #11

Open ThaFurther opened 3 years ago

ThaFurther commented 3 years ago

Hello,

Developing on Windows is the only option for some of us 😄.

When attempting to include to use version ^2.1.7 of redisk, I'm faced with the following error:

  ERROR in ./node_modules/redisk/node_modules/redis-parser/lib/hiredis.js 3:14-32
  Module not found: Error: Can't resolve 'hiredis' in '\node_modules\redisk\node_modules\redis-parser\lib'
  Did you mean './hiredis'?

So I attempted to install hiredis, and now am faced with this error:

npm ERR! \node_modules\hiredis\src\reader.cc(21,32): error C2661: 'v8::Object::Set': no overloaded function takes 2 arguments [\node_modules\hiredis\build\hiredis.vcxproj]
npm ERR! \node_modules\hiredis\src\reader.cc(55,42): error C2660: 'v8::Value::ToString': function does not take 0 arguments [\node_modules\hiredis\build\hiredis.vcxproj]
npm ERR! \node-gyp\Cache\15.9.0\include\node\v8.h(2856,44): message : see declaration of 'v8::Value::ToString' [\node_modules\hiredis\build\hiredis.vcxproj]

And here is my current understanding: I noticed that redisk usesredis-2.8.X which includes redis-parser which includes hiredis.

possible solution(s)

Thanks!