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
If add decorator InjectQueue in constructor then you see error.
Unable to resolve signature of parameter decorator when called as an expression.
Argument of type 'undefined' is not assignable to parameter of type 'string | symbol'.
I guess the problem in returning type of decorator (ParameterDecorator), because another decorator no have same error (Inject)
src/playground/playground.service.ts(10,6): error TS1239: Unable to resolve signature of parameter decorator when called as an expression.
Argument of type 'undefined' is not assignable to parameter of type 'string | symbol'.
Package version
0.6.3
Bull version
4.10.4
NestJS version
9.3.12
Node.js version
18 lts
In which operating systems have you tested?
macOS
Windows
Linux
Other
error TS1239: Unable to resolve signature of parameter decorator when called as an expression.
Argument of type 'undefined' is not assignable to parameter of type 'string | symbol'.
93 @InjectQueue('TEST_QUEUE')
Solution could be removing returning type ParameterDecorator or make the same type of nestjs Inject.
Example:
Is there an existing issue for this?
Current behavior
typescript 5.0.2
@nestjs/bull - latest
If add decorator InjectQueue in constructor then you see error.
I guess the problem in returning type of decorator (ParameterDecorator), because another decorator no have same error (Inject)
Minimum reproduction code
https://github.com/andreyddk/nestjs-bull-inject-queue-decorator-failure
Steps to reproduce
npm i
npm run watch
Expected behavior
Package version
0.6.3
Bull version
4.10.4
NestJS version
9.3.12
Node.js version
18 lts
In which operating systems have you tested?
Other
Solution could be removing returning type ParameterDecorator or make the same type of nestjs Inject.
Example:
or
const InjectQueueV2 = (name?: string) => Inject(getQueueToken(name));
The text was updated successfully, but these errors were encountered: