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
Im using next-intl at next 14.2.18 and next-intl 3.14, and this function don't allow to NextJs to build a project, because the t.rich function have a never type, and the initial implementation are the string index, and the object with a callback function to interpolate the code to a HTML tag respective
Verifications
I've verified that the problem I'm experiencing isn't covered in the docs.
create a function t.rich on a nextjs normal page component
{t.rich("benefitsForAll", {
bolded: (chunks) => {chunks}
})}
2. Try to build with npm run build
3. See error:
Type error: Argument of type '"benefitsForAll"' is not assignable to parameter of type 'never'.
Unfortunately, the reproduction is missing or incomplete, and as such we cannot investigate this issue. Please add a reproduction to the issue, otherwise it will be closed automatically.
To help us resolve the issue quickly, please simplify the reproduction as much as possible by removing any unnecessary code, files, and dependencies that are not directly related to the problem. The easier it is for us to see the issue, the faster we can help you.
Apart from the reproduction, make sure to include the precise steps on how to reproduce the issue, e.g.:
Open reproduction
Click on …
See error: …
Thank you for your understanding!
FAQ
"I've included a reproduction, what is missing?"
This comment might have been added because your reproduction doesn't point to a destination where the issue can be reproduced. Please make sure that the latest changes were saved in the reproduction and that the link is correct.
Description
Im using next-intl at next 14.2.18 and next-intl 3.14, and this function don't allow to NextJs to build a project, because the t.rich function have a never type, and the initial implementation are the string index, and the object with a callback function to interpolate the code to a HTML tag respective
Verifications
Mandatory reproduction URL
https://github.com/amannn/next-intl-bug-repro-app-router
Reproduction description
Steps to reproduce:
{t.rich("benefitsForAll", {
bolded: (chunks) => {chunks}
})}
2. Try to build with npm run build
3. See error:
Type error: Argument of type '"benefitsForAll"' is not assignable to parameter of type 'never'.
168 | <div className={styles["benefits-content-area"]} ref={sectionRef}>
169 | <h2 className={styles["benefits-section-title"]} ref={titleRef}>
Expected behaviour
the function t.rich expects to solve the translation correctly
The text was updated successfully, but these errors were encountered: