Message is: Error Creating Published Package
Thanks.
Somehow it happened that I called common.js and util.js both from the root and from the folder, the preview was working but export didn't.
<script type="text/javascript" src="common/common.js"></script>
<script type="text/javascript" src="common.js"></script>