open-rmf/rmf-web

[Build Fault]: Trying to import react-i18next to react-components

Closed this issue · 2 comments

Before proceeding, is there an existing issue or discussion for this?

Description

I am trying to import react-i18next and i18next to my project to add language preferences but in the dashboard folder, there is no problem I can easily import and use language settings. However, in the react-components folder once I try to import these packages I am having an error in the build stage. It is not about the package dependencies it gives a typescript error like this "../../node_modules/.pnpm/i18next@23.8.2/node_modules/i18next/typescript/t.v4.d.ts(182,47): error TS1005: '?' expected."
Is there anyone who has encountered any issue like that?

Hello @gurgenufuk12! Sorry that you facing this issue, however unfortunately this may be out of the scope of what we can help you with. A quick search got me i18next/i18next#2090, which may or may not be related, regarding typescript versions.

We are currently using a lot of outdated versions (we are looking to upgrade them soon), so that would be my best guess for now.

I'll be closing this ticket

Hey @aaronchongth for your info I have fixed the typing ussie thats because the version of typscript needs to be latest version whcih is 5.3.3