Error when using plugin-i18next

node_modules/i18next/index.d.ts:309:18 - error TS2430: Interface 'InitOptions<T>' incorrectly extends interface 'PluginOptions<T>'.
Type 'InitOptions<T>' is not assignable to type 'Omit<{ detection?: object | undefined; backend?: T | undefined; cache?: object | undefined; i18nFormat?: object | undefined; }, never>'.
Types of property 'backend' are incompatible.
Type 'Options | undefined' is not assignable to type 'T | undefined'.
Type 'Options' is not assignable to type 'T'.
'T' could be instantiated with an arbitrary type which could be unrelated to 'Options'.

309 export interface InitOptions<T = object> extends PluginOptions<T> {
~~~


Found 1 error in node_modules/i18next/index.d.ts:309
Solution
work by adding
"i18next": "~22.1.5"
Was this page helpful?