Update main.js before packager