Please attach a test project that replicates this problem. Also, specify what is in the resource? You can attach the project and the file for the resource here or in a forum PM.
@Roy-Mustang Вы были правы. У меня действительно были эмодзи в скрипте Node.js. После их удаления я смог нормально загрузить его на сервер. Большое спасибо!