Build for HTML error

Hello! Help please, I can’t build my game for HTML. Windows and Android are fine. When I try it, UATHelper return me:

UATHelper: Packaging (HTML5): UnrealBuildTool: [Path to my project]/SpriteScopeGenerator.cpp:49:49: error: member access into incomplete type ‘UWorld’.

49 in cpp:

APaperSpriteActor* SpawnedSprite = GetWorld()->SpawnActor(SpriteDefaultClass, GetActorLocation(), FRotator::ZeroRotator);

Stackoverflow offer me to include UWorld(cpp), but it’s strange because UWorld standard UE class.

p.s. Only with HTML, I don’t get this error with windows or android build.

Just add this line in your SpriteScopeGenerator.cpp

#include "Engine/World.h"

ref :Pointer to incomplete class type is not allowed - C++ - Unreal Engine Forums