Здравствуйте!
При сборке проекта силами webpack’a, при добавлении import { SendServer } from "../../js/webix/sendServer"
выскакивает ошибка:
../www-common/www/web/js/webix/webixClass.js 1.97 KiB [built] [code generated] [1 error]
ERROR in ../www-common/www/web/js/webix/webixClass.js 50:11
Module parse failed: Unexpected token (50:11)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| * @param def
| */
> proper = (obj = {}, name = "", def="")=>{
| if (obj.hasOwnProperty(name))
| this[name] = obj[name]
@ ../www-common/www/web/js/webix/sendServer.js 5:0-40 23:32-42
@ ./www/web/js/classAdmission.js 3:0-79
@ ./www/web/js/admission.js 1:0-49 3:31-45
@ ./www/web/js/index.js 2:0-39 102:32-41
webpack 5.4.0 compiled with 1 error in 427 ms
[webpack-cli] watching files for updates...
Стоит закомментировать импорт и ошибка исчезает.
Дополнительные файлы можно найти по адресу: ERROR in ../../js/webix/webixClass.js 50:11 (Webpack 5.4.0) - Stack Overflow на русском