Porieste prosim s chalanmi este tieto warnings (nechcel by som ohyba netlify konfiguraciu, aby sme to obysli):
6:10:44 AM: Treating warnings as errors because process.env.CI = true.
6:10:44 AM: Most CI servers set it automatically.
6:10:44 AM:
6:10:44 AM: Failed to compile.
6:10:44 AM:
6:10:44 AM: src/theme/shadows.ts
6:10:44 AM: Line 1:1: Assign array to a variable before exporting as module default import/no-anonymous-default-export
6:10:44 AM: src/theme/typography.ts
6:10:44 AM: Line 1:1: Assign object to a variable before exporting as module default import/no-anonymous-default-export
6:10:44 AM: src/utils/getInitials.ts
6:10:44 AM: Line 1:1: Assign arrow function to a variable before exporting as module default import/no-anonymous-default-export
6:10:44 AM: src/views/customer/CustomerListView/UpdateCustomer.tsx
6:10:44 AM: Line 34:10: 'state' is assigned a value but never used @typescript-eslint/no-unused-vars
6:10:44 AM: Line 44:6: React Hook React.useCallback has missing dependencies: 'customer?.email', 'customer?.name', 'customer?.phone', 'handleClose', 'newEmail', 'newName', and 'newPhoneNumber'. Either include them or remove the dependency array. If 'handleClose' changes too often, find the parent component that defines it and wrap that definition in useCallback react-hooks/exhaustive-deps
6:10:44 AM: Line 47:5: React Hook React.useCallback has a complex expression in the dependency array. Extract it to a separate variable so it can be statically checked react-hooks/exhaustive-deps
6:10:44 AM: Line 48:5: React Hook React.useCallback has a complex expression in the dependency array. Extract it to a separate variable so it can be statically checked react-hooks/exhaustive-deps
6:10:44 AM: Line 49:5: React Hook React.useCallback has a complex expression in the dependency array. Extract it to a separate variable so it can be statically checked react-hooks/exhaustive-deps
6:10:44 AM: src/views/customer/CustomerListView/data.tsx
6:10:44 AM: Line 3:1: Assign array to a variable before exporting as module default import/no-anonymous-default-export
6:10:44 AM: src/views/customer/CustomerListView/index.tsx
6:10:44 AM: Line 26:18: '_reexecuteQuery1' is assigned a value but never used @typescript-eslint/no-unused-vars
6:10:44 AM: src/views/product/ProductListView/data.tsx
6:10:44 AM: Line 3:1: Assign array to a variable before exporting as module default import/no-anonymous-default-export
6:10:44 AM: src/views/test/GeneratedCustomersTable.tsx
6:10:44 AM: Line 2:28: 'DataGrid' is defined but never used @typescript-eslint/no-unused-vars
6:10:44 AM: Line 6:15: 'columns' is assigned a value but never used @typescript-eslint/no-unused-vars
6:10:44 AM: error Command failed with exit code 1.
6:10:44 AM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
6:10:44 AM:
6:10:44 AM: ────────────────────────────────────────────────────────────────
6:10:44 AM: "build.command" failed
6:10:44 AM: ────────────────────────────────────────────────────────────────
6:10:44 AM:
6:10:44 AM: Error message
6:10:44 AM: Command failed with exit code 1: yarn build
6:10:44 AM:
6:10:44 AM: Error location
6:10:44 AM: In Build command from Netlify app:
6:10:44 AM: yarn build
6:10:44 AM:
6:10:44 AM: Resolved config
6:10:44 AM: build:
6:10:44 AM: command: yarn build
6:10:44 AM: commandOrigin: ui
6:10:44 AM: environment:
6:10:44 AM: - REVIEW_ID
6:10:44 AM: publish: /opt/build/repo/build
6:10:45 AM: Caching artifacts
6:10:45 AM: Started saving node modules
6:10:45 AM: Finished saving node modules
6:10:45 AM: Started saving build plugins
6:10:45 AM: Finished saving build plugins
6:10:45 AM: Started saving yarn cache
6:10:45 AM: Finished saving yarn cache
6:10:45 AM: Started saving pip cache
6:10:45 AM: Finished saving pip cache
6:10:45 AM: Started saving emacs cask dependencies
6:10:45 AM: Finished saving emacs cask dependencies
6:10:45 AM: Started saving maven dependencies
6:10:45 AM: Finished saving maven dependencies
6:10:45 AM: Started saving boot dependencies
6:10:45 AM: Finished saving boot dependencies
6:10:45 AM: Started saving rust rustup cache
6:10:45 AM: Finished saving rust rustup cache
6:10:45 AM: Started saving go dependencies
6:10:45 AM: Finished saving go dependencies
6:10:47 AM: Build failed due to a user error: Build script returned non-zero exit code: 2
6:10:47 AM: Creating deploy upload records
6:10:47 AM: Failing build: Failed to build site
6:10:47 AM: Failed during stage 'building site': Build script returned non-zero exit code: 2
6:10:48 AM: Finished processing build request in 2m35.45052685s
Porieste prosim s chalanmi este tieto warnings (nechcel by som ohyba netlify konfiguraciu, aby sme to obysli):