You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Similar to #129 my tsc build fails with the following errors:
> tsc
node_modules/bullmq/src/classes/child-pool.ts:27:26 - error TS2349: This expression is not callable.
Type '{ default: { (options?: Options): Promise<number>; makeRange(from: number, to: number): Iterable<number>; }; makeRange(from: number, to: number): Iterable<number>; }' has no call signatures.
27 const port = await getPort();
~~~~~~~
node_modules/bullmq/src/classes/child-pool.ts:4:1
4 import * as getPort from 'get-port';
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Type originates at this import. A namespace-style import cannot be called or constructed, and will cause a failure at runtime. Consider using a default import or import require here instead.
node_modules/bullmq/src/classes/redis-connection.ts:69:26 - error TS2351: This expression is not constructable.
Type '{ default: RedisStatic; Cluster: ClusterStatic; Command: typeof Command; }' has no construct signatures.
69 this._client = new IORedis(opts);
~~~~~~~
node_modules/bullmq/src/classes/redis-connection.ts:2:1
2 import * as IORedis from 'ioredis';
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Type originates at this import. A namespace-style import cannot be called or constructed, and will cause a failure at runtime. Consider using a default import or import require here instead.
Found 2 errors.
Similar to #129 my
tsc
build fails with the following errors:Version details:
tsconfig.json:
How can I solve these build errors? Thx in advance
The text was updated successfully, but these errors were encountered: