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
{{ message }}
This repository has been archived by the owner on Apr 13, 2022. It is now read-only.
Adding a single static method as the first method in a controller, causes the following error
Error: Argument Error (order): Range is 0 to 24, but 25 was provided.
Details
I had some static methods in my class, when i ran linting in moved these to the top - i then got the error(s).
Interestingly if you add it as last method, or add another static method it goes away..
Code To Reproduce Issue
Added to the supplychain controller
@Controller('supplychainchaincode')
export class SupplychainchaincodeController extends ConvectorController {
//Just add this
private static test(){}
@Create('Supplier')
@Invokable()
public async createSupplier() ....
Then run npm run test - there are no tests but shows the error.
The text was updated successfully, but these errors were encountered:
The problem
Adding a single static method as the first method in a controller, causes the following error
Error: Argument Error (order): Range is 0 to 24, but 25 was provided.
Details
I had some static methods in my class, when i ran linting in moved these to the top - i then got the error(s).
Interestingly if you add it as last method, or add another static method it goes away..
Code To Reproduce Issue
Added to the supplychain controller
Then run
npm run test
- there are no tests but shows the error.The text was updated successfully, but these errors were encountered: