Can't compile engine Niagara module

The Niagara module script called Grid 3D Secondary Update Particles coming with Niagara Fluid plugin won’t compile. It seems to work but when we open it and click on Compile, we’re getting these errors:
Previous call “SamplePreviousGridVector3Value” is not allowed for stack context ENiagaraScriptUsage : Module.


I need to tweak it a little for fy needs.

It seems Niagara Script Editor or inside compiler has bugs. It means that we cannot add modules properly which seriously affects new project development.
One example to show the problem is as follows.

  1. Create a NiagaraSystem using template example “Grid2D Gas Smoke” and open it.
  2. Under “Project Pressure” of Grid2D_Gas_SmokeFire_Emitter, duplicate the module of “Grid 2D Compute Gradient” and open it. Compile it and get error message of “Function call “GetGridvalue” is not allowed for stack context ENiagaraScriptUsage::Module. Allowed: …”
  3. This new Module does not work and does not make the Emitter Smoke moving faster upward. The original “Grid 2D Compute Gradient” does. (Of course, you need select or un-select which module for testing.)