Error in main.js solved