The snappingOptions property for the active tool of the measurement widget is still in beta.
I'm using API version 4.34 and Calcite 3.3.3.
When the snappingOptions is enabled for area measurement, the following error pops up as soon as the polygon drawing is more than two vertices.

I also tested this on the measurement widget sample code. This is how I am activating the snapping options:
reactiveUtils.when(
() => measurement.viewModel.state == 'ready' && measurement.activeTool == 'area',
() => {
measurement.activeWidget.snappingOptions = {
enabled: true,
featureSources: [
{
layer: featureLayer,
enabled: true
}
]
}
});
The error only occurs for area measurement and not for distance measurement. Is there another way of setting the snapping options, or could this be a bug?