Build failed continuously

hii Rahul this side i am struggling in deployment since morning and used almost all methods but nothing work as i am working on refine project i want deploy my project first i used npm run build and in publishing i added nothing i don’t have this software is perfectlly working localhost how we can solve this? anyone can please support me as i new on netlify. Thanks!

7:13:20 AM: Netlify Build

7:13:20 AM: ────────────────────────────────────────────────────────────────

7:13:20 AM: ​

7:13:20 AM: ❯ Version

7:13:20 AM: @netlify/build 29.45.0

7:13:20 AM: ​

7:13:20 AM: ❯ Flags

7:13:20 AM: baseRelDir: true

7:13:20 AM: buildId: 66592af2e7f811aac4efe9e3

7:13:20 AM: deployId: 66592af2e7f811aac4efe9e5

7:13:20 AM: ​

7:13:20 AM: ❯ Current directory

7:13:20 AM: /opt/build/repo

7:13:20 AM: ​

7:13:20 AM: ❯ Config file

7:13:20 AM: No config file was defined: using default values.

7:13:20 AM: ​

7:13:20 AM: ❯ Context

7:13:20 AM: production

7:13:20 AM: ​

7:13:20 AM: Build command from Netlify app

7:13:20 AM: ────────────────────────────────────────────────────────────────

7:13:20 AM: ​

7:13:20 AM: $ CI= npm run build

7:13:20 AM: > data-provider-supabase@1.0.0 build

7:13:20 AM: > tsc && refine build

7:13:30 AM: src/App.tsx(494,13): error TS2322: Type ‘{ liveMode: “auto”; syncWithLocation: true; unsavedChangesWarning: true; }’ is not assignable to type ‘IRefineOptions’.

7:13:30 AM: Object literal may only specify known properties, and ‘unsavedChangesWarning’ does not exist in type ‘IRefineOptions’.

7:13:30 AM: src/App.tsx(621,46): error TS2739: Type ‘{}’ is missing the following properties from type ‘EditTaskModalProps’: visible, onCancel, onUpdateTask, task

7:13:30 AM: src/SupportDrawer.tsx(34,40): error TS2339: Property ‘user’ does not exist on type ‘SupabaseAuthClient’.

7:13:30 AM: src/SupportDrawer.tsx(42,24): error TS7006: Parameter ‘html’ implicitly has an ‘any’ type.

7:13:30 AM: src/account-settings.tsx(1,1): error TS1208: ‘account-settings.tsx’ cannot be compiled under ‘–isolatedModules’ because it is considered a global script file. Add an import, export, or an empty ‘export {}’ statement to make it a module.

7:13:30 AM: src/authProvider.ts(4,35): error TS2304: Cannot find name ‘CredentialResponse’.

7:13:30 AM: src/authProvider.ts(5,39): error TS2304: Cannot find name ‘parseJwt’.

7:13:30 AM: src/authProvider.ts(34,9): error TS2304: Cannot find name ‘axios’.

7:13:30 AM: src/authProvider.ts(35,16): error TS2339: Property ‘google’ does not exist on type ‘Window & typeof globalThis’.

7:13:30 AM: src/customSider.tsx(1,1): error TS1208: ‘customSider.tsx’ cannot be compiled under ‘–isolatedModules’ because it is considered a global script file. Add an import, export, or an empty ‘export {}’ statement to make it a module.

7:13:30 AM: src/deledash.tsx(4,32): error TS2307: Cannot find module ‘…/…/utility’ or its corresponding type declarations.

7:13:30 AM: src/deledash.tsx(5,44): error TS2307: Cannot find module ‘./chartComponent’ or its corresponding type declarations.

7:13:30 AM: src/deledash.tsx(7,22): error TS2307: Cannot find module ‘…/contact/text’ or its corresponding type declarations.

7:13:30 AM: src/deledash.tsx(9,23): error TS2307: Cannot find module ‘./DemoGauge’ or its corresponding type declarations.

7:13:30 AM: src/deledash.tsx(11,30): error TS2307: Cannot find module ‘./LatestActivities’ or its corresponding type declarations.

7:13:30 AM: src/deledash.tsx(12,23): error TS2691: An import path cannot end with a ‘.tsx’ extension. Consider importing ‘./UserCount.js’ instead.

7:13:30 AM: src/deledash.tsx(15,23): error TS2307: Cannot find module ‘./footer’ or its corresponding type declarations.

7:13:30 AM: src/deledash.tsx(16,31): error TS2307: Cannot find module ‘./extra’ or its corresponding type declarations.

7:13:30 AM: src/deledash.tsx(17,35): error TS2307: Cannot find module ‘./recentContactList’ or its corresponding type declarations.

7:13:30 AM: src/deledash.tsx(18,26): error TS2307: Cannot find module ‘…/calendar/calendar’ or its corresponding type declarations.

7:13:30 AM: src/deledash.tsx(19,25): error TS2307: Cannot find module ‘./Card’ or its corresponding type declarations.

7:13:30 AM: src/deledash.tsx(20,37): error TS2307: Cannot find module ‘./ProductFilter’ or its corresponding type declarations.

7:13:30 AM: src/deledash.tsx(21,35): error TS2307: Cannot find module ‘./ProductFilter’ or its corresponding type declarations.

7:13:30 AM: src/deledash.tsx(22,32): error TS2307: Cannot find module ‘./ccartC’ or its corresponding type declarations.

7:13:30 AM: src/deledash.tsx(75,22): error TS2304: Cannot find name ‘FC’.

7:13:30 AM: src/deledash.tsx(76,5): error TS7031: Binding element ‘color’ implicitly has an ‘any’ type.

7:13:30 AM: src/deledash.tsx(77,5): error TS7031: Binding element ‘children’ implicitly has an ‘any’ type.

7:13:30 AM: src/deledash.tsx(265,28): error TS2339: Property ‘id’ does not exist on type ‘never’.

7:13:30 AM: src/deledash.tsx(268,78): error TS2339: Property ‘color’ does not exist on type ‘never’.

7:13:30 AM: src/deledash.tsx(270,42): error TS2339: Property ‘date’ does not exist on type ‘never’.

7:13:30 AM: src/deledash.tsx(272,49): error TS2339: Property ‘date’ does not exist on type ‘never’.

7:13:30 AM: src/deledash.tsx(274,32): error TS2339: Property ‘date’ does not exist on type ‘never’.

7:13:30 AM: src/tags/contact-status-tag.tsx(11,31): error TS2307: Cannot find module ‘@/graphql/schema.types’ or its corresponding type declarations.

7:13:30 AM: src/tags/quote-status-tag.tsx(10,29): error TS2307: Cannot find module ‘@/graphql/schema.types’ or its corresponding type declarations.

7:13:30 AM: src/tags/user-tag.tsx(3,35): error TS2307: Cannot find module ‘@refinedev/nestjs-query’ or its corresponding type declarations.

7:13:30 AM: src/tags/user-tag.tsx(7,34): error TS2307: Cannot find module ‘@/graphql/types’ or its corresponding type declarations.

7:13:30 AM: src/types.ts(1,29): error TS2307: Cannot find module ‘./schema.types’ or its corresponding type declarations.

7:13:30 AM: src/utilities/helpers.ts(2,35): error TS2307: Cannot find module ‘@refinedev/nestjs-query’ or its corresponding type declarations.

7:13:30 AM: src/utilities/helpers.ts(4,42): error TS2307: Cannot find module ‘@/graphql/types’ or its corresponding type declarations.

7:13:30 AM: ​

7:13:30 AM: “build.command” failed

7:13:30 AM: ────────────────────────────────────────────────────────────────

7:13:30 AM: ​

7:13:30 AM: Error message

7:13:30 AM: Command failed with exit code 2: CI= npm run build (Search results for '"non-zero exit code: 2"' - Netlify Support Forums)

7:13:30 AM: ​

7:13:30 AM: Error location

7:13:30 AM: In Build command from Netlify app:

7:13:30 AM: CI= npm run build

7:13:30 AM: ​

7:13:30 AM: Resolved config

7:13:30 AM: build:

7:13:30 AM: command: CI= npm run build

7:13:30 AM: commandOrigin: ui

7:13:30 AM: publish: /opt/build/repo/build

7:13:30 AM: publishOrigin: ui

7:13:31 AM: Build failed due to a user error: Build script returned non-zero exit code: 2

7:13:31 AM: Failing build: Failed to build site

7:13:31 AM: Finished processing build request in 1m8.631s

The issues with this project are numerous, starting with

all the way to

If this project doesn’t build locally then it won’t build on Netlify.

You need to run the build command locally and address any issues you encounter before attempting to deploy with Netlify.