How to debug C2139 (C++)

  c++, visual-studio

I have a reasonably large project, when I update the C++/WinRT NuGet package I get the following problem:

1>C:Program Files (x86)Microsoft Visual Studio19CommunityVCToolsMSVC.29.30133includexsmf_control.h(137,33): error C2139: 'winrt::ProjectName::ExistingClass': an undefined class is not allowed as an argument to compiler intrinsic type trait '__is_trivially_destructible'

It seems to be caused by a wrong forward declaration.

Any idea on how I could debug this?

Source: Windows Questions C++