Closed kpawelczak closed 1 year ago
In my Angular project I use custom request - https://github.com/i18next/i18next-http-backend?tab=readme-ov-file#backend-options. After updating to version 2.4.1, I get an error that the type RequestCallback is not exported.
RequestCallback
Module '"i18next-http-backend"' has no exported member 'RequestCallback'.
If I change the import to "i18next-http-backend/cjs"it does not complain and it works. Would be nice if we could get access to this type from esm module.
"i18next-http-backend/cjs"
import type { HttpBackendOptions, RequestCallback, } from 'i18next-http-backend'; const request = ( options: HttpBackendOptions, url: string, payload: string | object, callback: RequestCallback ) => { }
RequestCallback can be imported from i18next-http-backend
i18next-http-backend
Try with v2.4.2
thanks, it works now. Really appreciate the fast response.
🐛 Bug Report
In my Angular project I use custom request - https://github.com/i18next/i18next-http-backend?tab=readme-ov-file#backend-options. After updating to version 2.4.1, I get an error that the type
RequestCallback
is not exported.If I change the import to
"i18next-http-backend/cjs"
it does not complain and it works. Would be nice if we could get access to this type from esm module.To Reproduce
Expected behavior
RequestCallback
can be imported fromi18next-http-backend
Your Environment