Sapl files missing in builds causing Leaflet map to break

When running a program with a leaflet map (e.g. the example from the iTask repo) I get:

Data constructor _predefined._Nil cannot be found!
Edited by Ghost User