Skip to content

fix build error (on windows) related to translation.ts#1573

Closed
notG0ld wants to merge 1 commit intospacebarchat:masterfrom
notG0ld:master
Closed

fix build error (on windows) related to translation.ts#1573
notG0ld wants to merge 1 commit intospacebarchat:masterfrom
notG0ld:master

Conversation

@notG0ld
Copy link
Copy Markdown

@notG0ld notG0ld commented Mar 6, 2026

fixes:

image

fixes:
src/api/middlewares/Translation.ts:36:10 - error TS2769: No overload matches this call.
  Overload 1 of 2, '(callback?: Callback | undefined): Promise<TFunction<"translation", undefined>>', gave the following error.
    Object literal may only specify known properties, and 'preload' does not exist in type 'Callback'.
  Overload 2 of 2, '(options: InitOptions<{ loadPath: string; }>, callback?: Callback | undefined): Promise<TFunction<"translation", undefined>>', gave the following error.
    Object literal may only specify known properties, and 'showSupportNotice' does not exist in type 'InitOptions<{ loadPath: string; }>'.

36         .init({
@CyberL1
Copy link
Copy Markdown
Member

CyberL1 commented Mar 6, 2026

Are you sure you have the i18next lib updated? lol

@notG0ld
Copy link
Copy Markdown
Author

notG0ld commented Mar 6, 2026

Are you sure you have the i18next lib updated? lol

No, i am not. i will try to update the package later and retry

@notG0ld notG0ld closed this Mar 6, 2026
@notG0ld
Copy link
Copy Markdown
Author

notG0ld commented Mar 6, 2026

Are you sure you have the i18next lib updated? lol

No, i am not. i will try to update the package later and retry

turns out it was outdated packages yeah, with a fresh npm i everything compiled with the latest files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants