fix precompiling error in main.js