Skip to content

Can't compile with tsc (typescript) #1981

Closed
@ghostlexly

Description

@ghostlexly

🐛 Bug Report

I can't build my app after i installed i18next

To Reproduce

I have installed i18next 23.2.0 and typescript 4.9.4

tsc -p .

Results in:

#0 0.414 $ tsc -p .
#0 4.938 node_modules/i18next/index.d.ts(856,32): error TS2536: Type 'false' cannot be used to index type 'Keys'.
#0 4.938 node_modules/i18next/index.d.ts(856,53): error TS2344: Type 'boolean' does not satisfy the constraint 'Namespace<string>'.
#0 4.938 node_modules/i18next/index.d.ts(858,33): error TS2344: Type 'boolean' does not satisfy the constraint 'Namespace<string>'.
#0 5.020 error Command failed with exit code 2.

Expected behavior

Build successfully

Your Environment

  • runtime version: node v18.16.0
  • i18next version: i.e. 23.2.0
  • os: Mac

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions