Skip to content

Can't find adapters in distribution #18

@terryweiss-2

Description

@terryweiss-2

This is probably a stupid question, but here goes. I am trying to load RedisStreamsIO from "kkrpc", but it fails as it can't find the type. Looking at the dist directory in node_modules/krpc I cannot find the adapters directory. The string "RedisStreamsIO" also cannot be found in any files in dist. I think I am missing an install step, but the docs don't seem define anything other than to install ioredis which has been done. What am I missing?

Found:

src/rpc2.ts:2:9 - error TS2305: Module '"kkrpc"' has no exported member 'RedisStreamsIO'.

2 import {RedisStreamsIO} from "kkrpc"

Expected:
Typescript types yumminess

This looks like a very cool package, I hope to be able to try it out.


I cloned the project and I was able to get the adapters in dist/ by adding "include": ["src/**/*.ts"], to packages/kkrpc/tsconfig.json, but the build is pretty complicated and I am not sure if that is the correct long term solution.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions