bus-redis's People
bus-redis's Issues
TypeError: Cannot read property 'sadd' of undefined
i'm trying to connect to redis but i keep hitting this error message:
TypeError: Cannot read property 'sadd' of undefined at /bus-starter/node_modules/@node-ts/bus-redis/dist/redis-transport.js:101:40
here is how i'm using it
`import { Container } from 'inversify'
import { BusModule } from '@node-ts/bus-core'
import { LoggerModule } from '@node-ts/logger-core'
import { WinstonModule } from '@node-ts/logger-winston'
import { HandlersModule } from './handlers/handlers-module'
import { BusWorkflowModule } from '@node-ts/bus-workflow'
import {
BUS_REDIS_SYMBOLS,
BusRedisModule,
RedisTransportConfiguration
} from '@node-ts/bus-redis'
import {
BUS_POSTGRES_SYMBOLS,
BusPostgresModule,
PostgresConfiguration
} from '@node-ts/bus-postgres'
const redisConfiguration: RedisTransportConfiguration = {
queueName: 'accounts-application-queue',
connectionString: 'redis://127.0.0.1:6379',
maxRetries: 3,
}
const postgresConfiguration: PostgresConfiguration = {
connection: {
connectionString: 'postgres://xxxxxxxxxxxxxxxxxxxx/postgres'
},
schemaName: 'workflows'
}
const container = new Container()
container.load(new LoggerModule())
container.load(new BusModule())
container.load(new WinstonModule())
container.load(new BusWorkflowModule())
container.load(new HandlersModule())
container.load(new BusRedisModule())
container.load(new BusPostgresModule())
container
.bind(BUS_REDIS_SYMBOLS.TransportConfiguration)
.toConstantValue(redisConfiguration)
container
.bind(BUS_POSTGRES_SYMBOLS.PostgresConfiguration)
.toConstantValue(postgresConfiguration)
export default container`
what am i doing wrong? I can connect to the redis instance, and it works for a bullmq implementation i have laying around.
any guidance is appreciated!
Missing dist folder in published npm package
Published lib does not have dist
folder, but package.json references it:
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
Cannot find module '@node-ts/bus-redis' or its corresponding type declarations
The package doesn't contain a dist
directory. I had to cd
into the package in node_modules and npm run build
to make it work.
Error: Cannot find module '/Users/ivor/Developer/experiments/ts-node-bus/node_modules/@node-ts/bus-redis/dist/index.js'. Please verify that the package.json has a valid "main" entry
at tryPackage (node:internal/modules/cjs/loader:353:19)
at Function.Module._findPath (node:internal/modules/cjs/loader:566:18)
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:919:27)
at Function.Module._resolveFilename.sharedData.moduleResolveFilenameHook.installedValue [as _resolveFilename] (/Users/ivor/Developer/experiments/ts-node-bus/node_modules/@cspotcode/source-map-support/source-map-support.js:811:30)
at Function.Module._load (node:internal/modules/cjs/loader:778:27)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object.<anonymous> (/Users/ivor/Developer/experiments/ts-node-bus/src/bus.ts:7:1)
at Module._compile (node:internal/modules/cjs/loader:1101:14)
at Module.m._compile (/Users/ivor/Developer/experiments/ts-node-bus/node_modules/ts-node/src/index.ts:1618:23)
at Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
at Object.require.extensions.<computed> [as .ts] (/Users/ivor/Developer/experiments/ts-node-bus/node_modules/ts-node/src/index.ts:1621:12)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:102:18) {
code: 'MODULE_NOT_FOUND',
path: '/Users/ivor/Developer/experiments/ts-node-bus/node_modules/@node-ts/bus-redis/package.json',
requestPath: '@node-ts/bus-redis'
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.