You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using pnpm in project, ICU instance's type will be imcompatible with i18next.use
To Reproduce
use pnpm to install dependencies.
importi18nextfrom'i18next';importICUfrom'i18next-icu';consticu=newICU();// ts error on blow 'icu'i18next.use(icu).init();
Type 'IcuInstance<IcuConfig>' provides no match for the signature 'new (...args: any[]): Module'.ts(2345)
as pnpm will not hoist all dependencies to root's node_modules. i18next-icu will not have access to i18next unless dependency was declared in package.json.
🐛 Bug Report
When using pnpm in project, ICU instance's type will be imcompatible with i18next.use
To Reproduce
use pnpm to install dependencies.
Type 'IcuInstance<IcuConfig>' provides no match for the signature 'new (...args: any[]): Module'.ts(2345)
as pnpm will not hoist all dependencies to root's node_modules. i18next-icu will not have access to i18next unless dependency was declared in package.json.
Possible solution
add i18next as dependency in package.json
link to pnpm issue pnpm/pnpm#3788
The text was updated successfully, but these errors were encountered: