bitrix-tools / cli

Консольный инструмент Битрикс-разработчика
57 stars 25 forks source link

Как исправлять ошибки билда модуля? #45

Open AndreyChursin opened 3 years ago

AndreyChursin commented 3 years ago

При выполнении "$ bitrix build ." в корне сайта консоль выдаёт ошибку после успешной сборки файла "...\bitrix\js\ui\vue\vuex\dist\vuex.bundle.js js: 77 KB"

Ошибка: (node:14096) UnhandledPromiseRejectionWarning: TypeError: Cannot read property '1' of null at buildComponentName (C:\Users\user\AppData\Roaming\npm\node_modules\@bitrix\cli\dist\bitrix.build.js:370:21) at report (C:\Users\user\AppData\Roaming\npm\node_modules\@bitrix\cli\dist\bitrix.build.js:508:18) at buildDirectory (C:\Users\user\AppData\Roaming\npm\node_modules\@bitrix\cli\dist\bitrix.build.js:841:5) at async build (C:\Users\user\AppData\Roaming\npm\node_modules\@bitrix\cli\dist\bitrix.build.js:855:5) at async bitrixBuild (C:\Users\user\AppData\Roaming\npm\node_modules\@bitrix\cli\dist\bitrix.build.js:1002:3) (Usenode --trace-warnings ...to show where the warning was created) (node:14096) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag--unhandled-rejections=strict(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1) (node:14096) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Отсюда вопрос: "как понять какой файл и в чем проблема?"