Tried to add private dependency module "Renderer" in Lightmass module but failed

I need to include SceneRendering.h in my Lightmass module to create a temporary View. To do this, I attempted to add the “Rendering” module in my build.cs file, but the build always fails afterward.

How can I resolve this issue?


SlateNullRendererModule.cpp(12): [C1083] Cannot open include file: ‘TextureResource.h’: No such file or directory

I also tried to install a NuGet package as suggested in some solutions I found online, but it didn’t help.