ELIFECYCLE
[ERROR] npm ERR! errno 1
[ERROR] npm ERR! usssla4fix-react-web@2.0.1 build-app: `node -v && craco build`
[ERROR] npm ERR! Exit status 1
[ERROR] npm ERR!
[ERROR] npm ERR! Failed at the usssla4fix-react-web@2.0.1 build-app script.
[ERROR] npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
[ERROR]
[ERROR] npm ERR! A complete log of this run can be found in:
[ERROR] npm ERR! /home/gitlab-runner/.npm/_logs/2023-11-01T22_17_44_928Z-debug.log
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 03:13 min
[INFO] Finished at: 2023-11-02T01:17:44+03:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.6:npm (npm run build) on project usssla4fix-react-web: Failed to run task: 'npm run build-app' failed. org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1) -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.6:npm (npm run build) on project usssla4fix-react-web: Failed to run task
причем если собирать локально на раннере - ошибок нет. Менял версии nodejs, java, npm - безрезультатно. Подскажите пожалуйста, как избежать ошибки ?
Прочитать логи из файла, путь к которому написан в сообщении
20 error code ELIFECYCLE 21 error errno 1 22 error react-web@2.0.1 build-app: `node -v && craco build` 22 error Exit status 1
Выполни эту команду и посмотри на логи ее работы
Creating an optimized production build... Treating warnings as errors because process.env.CI = true. Most CI servers set it automatically. Failed to compile. ./src/screens/Notifications/NotificationContent/useNotificationContent.ts Line 191:6: React Hook useCallback has a missing dependency: 't'. Either include it or remove the dependency array react-hooks/exhaustive-deps ./src/screens/Dashboard/DashboardPane/useDashboardPane.ts Line 34:10: 'classMetric' is assigned a value but never used @typescript-eslint/no-unused-vars Line 85:6: React Hook useEffect has missing dependencies: 'billingId', 'changeMetric', 'metricName', and 'ready'. Either include them or remove the dependency array react-hooks/exhaustive-deps Line 94:6: React Hook useEffect has a missing dependency: 'handleLoadMetrics'. Either include it or remove the dependency array react-hooks/exhaustive-deps ./src/screens/Dashboard/DashboardTimeline/DashboardTimeline.tsx Line 79:6: React Hook useEffect has an unnecessary dependency: 'leftTimelineRef.current'. Either exclude it or remove the dependency array. Mutable values like 'leftTimelineRef.current' aren't valid dependencies because mutating them doesn't re-render the component react-hooks/exhaustive-deps Cleaning up project directory and file based variables 00:00 ERROR: Job failed: exit status 1
при сборке на раннере таких ошибок нет
Обсуждают сегодня