I am trying to compile a custom module and continuously getting this error
`undefined parse transform 'lager_transform'`
I tried almost all the suggestions regarding this error but could not come across anything. I am using ejabberd-18.01 and otp 20
I think you include logger.hrl file. When compiler finds
-compile([{parse_transform, lager_transform}]).here it callslager_transform:parse_transform/2for making new module.lager_transformgets source code (Erlang AST or Abstract Syntax Tree) and produces new AST which contains some code for generating log information.The problem is that your compiler can't find
lager_transform.beamfor running that function. You can give path oflagerto compiler using-paor-pzflag: