The error message does not help determine the problem
The type definition of any doesn't appear to be allowed
As well as "any", changing the type to "object" also produces the same results meaning that "object" is not allowed either, so it's possible other standard typescript types also cause the same problem.
As a further thought it would be good if unsupported options were picked up at typescript compile time rather than at runtime but don't know if that is possible and may be a limitation of the experimental annotation support in typescript.
Given the following model definition
The chaincode fails to instantiate with the following cryptic message
There are 2 issues here
As well as "any", changing the type to "object" also produces the same results meaning that "object" is not allowed either, so it's possible other standard typescript types also cause the same problem.
As a further thought it would be good if unsupported options were picked up at typescript compile time rather than at runtime but don't know if that is possible and may be a limitation of the experimental annotation support in typescript.