With typescript 5.0.2 and i18next-http-backend 1.4.4, running tcs produces the following error:
Could not find a declaration file for module 'i18next-http-backend'. '/Users/me/Dev/project/node_modules/i18next-http-backend/esm/index.js' implicitly has an 'any' type.
There are types at '/Users/me/Dev/project/node_modules/i18next-http-backend/index.d.ts', but this result could not be resolved when respecting package.json "exports". The 'i18next-http-backend' library may need to update its package.json or typings.
3 import HttpApi from 'i18next-http-backend';
~~~~~~~~~~~~~~~~~~~~~~
π Bug Report
With typescript
5.0.2
and i18next-http-backend1.4.4
, runningtcs
produces the following error:To Reproduce
I simply have this imported in my config file:
I'm using these
tsconfig.json
compiler options:And then I run
tsc
There appears to be a similar reference here: https://github.com/i18next/i18next-resources-to-backend/issues/5
Expected behavior
To not get this typescript error
Your Environment