[GH-ISSUE #2402] Build Failure #678

Open
opened 2026-02-26 18:48:01 +03:00 by kerem · 1 comment
Owner

Originally created by @savedbygracejm on GitHub (Jan 20, 2026).
Original GitHub issue: https://github.com/documenso/documenso/issues/2402

Issue Description

Documeso Wont build using npm run build

My infrastructure is AlmaLinux v9.7.0 STANDARD kvm

Node version is 20.20.0
NPM version is 10.8.2

Everything compiled successfully but

when i try npm run build i get this error:

vite.config.ts:27:30 - error TS2769: No overload matches this call.
@documenso/remix:build: The last overload gave the following error.
@documenso/remix:build: Type 'typeof autoprefixer' is not assignable to type 'AcceptedPlugin'.
@documenso/remix:build: Type 'typeof autoprefixer' is not assignable to type 'PluginCreator'.
@documenso/remix:build: Types of parameters 'args' and 'opts' are incompatible.
@documenso/remix:build: Type '[opts?: any]' is not assignable to type '[...any[], Options]'.
@documenso/remix:build: Source provides no match for required element at position 1 in target.
@documenso/remix:build:
@documenso/remix:build: 27 plugins: [tailwindcss, autoprefixer],
@documenso/remix:build: ~~~~~~~~~~~~
@documenso/remix:build:
@documenso/remix:build: ../../node_modules/vite/dist/node/index.d.ts:3102:18
@documenso/remix:build: 3102 declare function defineConfig(config: UserConfigExport): UserConfigExport;
@documenso/remix:build: ~~~~~~~~~~~~
@documenso/remix:build: The last overload is declared here.
@documenso/remix:build:
@documenso/remix:build: ../../packages/email/transports/mailchannels.ts:61:36 - error TS2339: Property 'address' does not exist on type 'Address | (string | Address)[]'.
@documenso/remix:build: Property 'address' does not exist on type '(string | Address)[]'.
@documenso/remix:build:
@documenso/remix:build: 61 email: mail.data.from?.address,
@documenso/remix:build: ~~~~~~~
@documenso/remix:build:
@documenso/remix:build: ../../packages/email/transports/mailchannels.ts:62:35 - error TS2339: Property 'name' does not exist on type 'Address | (string | Address)[]'.
@documenso/remix:build: Property 'name' does not exist on type '(string | Address)[]'.
@documenso/remix:build:
@documenso/remix:build: 62 name: mail.data.from?.name,
@documenso/remix:build: ~~~~
@documenso/remix:build:
@documenso/remix:build:
@documenso/remix:build: Found 3 errors in 2 files.
@documenso/remix:build:
@documenso/remix:build: Errors Files
@documenso/remix:build: 1 vite.config.ts:27
@documenso/remix:build: 2 ../../packages/email/transports/mailchannels.ts:61
npm error Lifecycle script typecheck failed with error:
npm error code 2
npm error path /documenso/apps/remix
npm error workspace @documenso/remix@2.4.0
npm error location /documenso/apps/remix
npm error command failed
npm error command sh -c react-router typegen && tsc
npm error Lifecycle script build:app failed with error:
npm error code 2
npm error path /documenso/apps/remix
npm error workspace @documenso/remix@2.4.0
npm error location /documenso/apps/remix
npm error command failed
npm error command sh -c npm run typecheck && cross-env NODE_ENV=production react-router build
npm error Lifecycle script build failed with error:
npm error code 2
npm error path /documenso/apps/remix
npm error workspace @documenso/remix@2.4.0
npm error location /documenso/apps/remix
npm error command failed
npm error command sh -c ./.bin/build.sh

@documenso/remix:build: ERROR: command finished with error: command (/documenso/apps/remix) /root/.nvm/versions/node/v20.20.0/bin/npm run build exited (2)
@documenso/remix#build: command (/documenso/apps/remix) /root/.nvm/versions/node/v20.20.0/bin/npm run build exited (2)

Tasks: 4 successful, 5 total
Cached: 0 cached, 5 total
Time: 1m27.359s
Failed: @documenso/remix#build

ERROR run failed: command exited (2)

@documenso/root@2.4.0 prisma:migrate-deploy

Steps to Reproduce

No response

Expected Behavior

No response

Current Behavior

No response

Screenshots (optional)

No response

Operating System [e.g., Windows 10]

No response

Browser [e.g., Chrome, Firefox]

No response

Version [e.g., 2.0.1]

No response

Please check the boxes that apply to this issue report.

  • I have searched the existing issues to make sure this is not a duplicate.
  • I have provided steps to reproduce the issue.
  • I have included relevant environment information.
  • I have included any relevant screenshots.
  • I understand that this is a voluntary contribution and that there is no guarantee of resolution.
  • I want to work on creating a PR for this issue if approved
Originally created by @savedbygracejm on GitHub (Jan 20, 2026). Original GitHub issue: https://github.com/documenso/documenso/issues/2402 ### Issue Description Documeso Wont build using npm run build My infrastructure is AlmaLinux v9.7.0 STANDARD kvm Node version is 20.20.0 NPM version is 10.8.2 Everything compiled successfully but when i try npm run build i get this error: vite.config.ts:27:30 - error TS2769: No overload matches this call. @documenso/remix:build: The last overload gave the following error. @documenso/remix:build: Type 'typeof autoprefixer' is not assignable to type 'AcceptedPlugin'. @documenso/remix:build: Type 'typeof autoprefixer' is not assignable to type 'PluginCreator<any>'. @documenso/remix:build: Types of parameters 'args' and 'opts' are incompatible. @documenso/remix:build: Type '[opts?: any]' is not assignable to type '[...any[], Options]'. @documenso/remix:build: Source provides no match for required element at position 1 in target. @documenso/remix:build: @documenso/remix:build: 27 plugins: [tailwindcss, autoprefixer], @documenso/remix:build: ~~~~~~~~~~~~ @documenso/remix:build: @documenso/remix:build: ../../node_modules/vite/dist/node/index.d.ts:3102:18 @documenso/remix:build: 3102 declare function defineConfig(config: UserConfigExport): UserConfigExport; @documenso/remix:build: ~~~~~~~~~~~~ @documenso/remix:build: The last overload is declared here. @documenso/remix:build: @documenso/remix:build: ../../packages/email/transports/mailchannels.ts:61:36 - error TS2339: Property 'address' does not exist on type 'Address | (string | Address)[]'. @documenso/remix:build: Property 'address' does not exist on type '(string | Address)[]'. @documenso/remix:build: @documenso/remix:build: 61 email: mail.data.from?.address, @documenso/remix:build: ~~~~~~~ @documenso/remix:build: @documenso/remix:build: ../../packages/email/transports/mailchannels.ts:62:35 - error TS2339: Property 'name' does not exist on type 'Address | (string | Address)[]'. @documenso/remix:build: Property 'name' does not exist on type '(string | Address)[]'. @documenso/remix:build: @documenso/remix:build: 62 name: mail.data.from?.name, @documenso/remix:build: ~~~~ @documenso/remix:build: @documenso/remix:build: @documenso/remix:build: Found 3 errors in 2 files. @documenso/remix:build: @documenso/remix:build: Errors Files @documenso/remix:build: 1 vite.config.ts:27 @documenso/remix:build: 2 ../../packages/email/transports/mailchannels.ts:61 npm error Lifecycle script `typecheck` failed with error: npm error code 2 npm error path /documenso/apps/remix npm error workspace @documenso/remix@2.4.0 npm error location /documenso/apps/remix npm error command failed npm error command sh -c react-router typegen && tsc npm error Lifecycle script `build:app` failed with error: npm error code 2 npm error path /documenso/apps/remix npm error workspace @documenso/remix@2.4.0 npm error location /documenso/apps/remix npm error command failed npm error command sh -c npm run typecheck && cross-env NODE_ENV=production react-router build npm error Lifecycle script `build` failed with error: npm error code 2 npm error path /documenso/apps/remix npm error workspace @documenso/remix@2.4.0 npm error location /documenso/apps/remix npm error command failed npm error command sh -c ./.bin/build.sh @documenso/remix:build: ERROR: command finished with error: command (/documenso/apps/remix) /root/.nvm/versions/node/v20.20.0/bin/npm run build exited (2) @documenso/remix#build: command (/documenso/apps/remix) /root/.nvm/versions/node/v20.20.0/bin/npm run build exited (2) Tasks: 4 successful, 5 total Cached: 0 cached, 5 total Time: 1m27.359s Failed: @documenso/remix#build ERROR run failed: command exited (2) > @documenso/root@2.4.0 prisma:migrate-deploy ### Steps to Reproduce _No response_ ### Expected Behavior _No response_ ### Current Behavior _No response_ ### Screenshots (optional) _No response_ ### Operating System [e.g., Windows 10] _No response_ ### Browser [e.g., Chrome, Firefox] _No response_ ### Version [e.g., 2.0.1] _No response_ ### Please check the boxes that apply to this issue report. - [ ] I have searched the existing issues to make sure this is not a duplicate. - [ ] I have provided steps to reproduce the issue. - [ ] I have included relevant environment information. - [ ] I have included any relevant screenshots. - [ ] I understand that this is a voluntary contribution and that there is no guarantee of resolution. - [ ] I want to work on creating a PR for this issue if approved
Author
Owner

@github-actions[bot] commented on GitHub (Jan 20, 2026):

Thank you for opening your first issue and for being a part of the open signing revolution!

One of our team members will review it and get back to you as soon as it possible 💚

Meanwhile, please feel free to hop into our community in Discord

<!-- gh-comment-id:3774166461 --> @github-actions[bot] commented on GitHub (Jan 20, 2026): Thank you for opening your first issue and for being a part of the open signing revolution! <br /> One of our team members will review it and get back to you as soon as it possible 💚 <br /> Meanwhile, please feel free to hop into our community in [Discord](https://documen.so/discord)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/documenso#678
No description provided.