use withPrettyErrors when precompiling