(cloudwatch) System.ArgumentException : Could not infer JSII type for .NET type 'IWidget' (Parameter 'type') #12587
Labels
@aws-cdk/aws-cloudwatch
Related to Amazon CloudWatch
bug
This issue is a bug.
effort/medium
Medium work item – several days of effort
language/dotnet
Related to .NET bindings
p1
When trying to create a Dashboard using Dashboard props and IWidget Jagged array in the props, the unit test fail with error:
System.ArgumentException : Could not infer JSII type for .NET type 'IWidget' (Parameter 'type')
(dotnet build will compile the code successfully, while the App.Synth will fail)
Create the dashboard empty & adding the widget using the AddWidgets method works as expected.
Reproduction Steps
What did you expect to happen?
App.Synth() generates a valid CloudFormation template.
What actually happened?
System.ArgumentException : Could not infer JSII type for .NET type 'IWidget' (Parameter 'type')
Environment
Other
The following code will work as expected:
This is 🐛 Bug Report
The text was updated successfully, but these errors were encountered: