build failed, main.js issue