Project is not being compiled, after using UPROPERTY on UWidgetComponent component

When I use ‘UPROPERTY’ macros on the ‘UWidgetComponent’ component, gets following error:

Creating library C:\Users\Documents\Unreal Projects\BlackFortune\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor-BlackFortune.suppressed.lib and object C:\Users\Documents\Unreal Projects\BlackFortune\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor-BlackFortune.suppressed.exp
Item.gen.cpp.obj : error LNK2019: unresolved external symbol “__declspec(dllimport) class UClass * __cdecl Z_Construct_UClass_UWidgetComponent_NoRegister(void)” (_imp?Z_Construct_UClass_UWidgetComponent_NoRegister@@YAPEAVUClass@@anonymous_user_9674a66c) referenced in function “class UClass * __cdecl Z_Construct_UClass_AItem(void)” (?Z_Construct_UClass_AItem@@YAPEAVUClass@@anonymous_user_9674a66c)
C:\Users\Documents\Unreal Projects\BlackFortune\Binaries\Win64\UE4Editor-BlackFortune.dll : fatal error LNK1120: 1 unresolved externals
Creating library C:\Users\Documents\Unreal Projects\BlackFortune\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor-BlackFortune.lib and object C:\Users\Documents\Unreal Projects\BlackFortune\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor-BlackFortune.exp
@progress ‘Compiling C++ source code…’ 91%

Below is example:

 UPROPERTY(VisibleDefaultsOnly, BlueprintReadOnly, Category = HUD, meta = (AllowPrivateAccess="true"))
    UWidgetComponent * WidgetComponentI;

When i do not use ‘UPROPERTY’ macros, build is being completed successfully

I found, how to solve the problem.