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
useTranslations Type Mismatch - Expected 0 arguments, but got X
I'm following the set up and everything's working on the browser, but I see a type issue every time that I call the useTranslations t function:
To Reproduce
import{useTranslation}from'next-i18next';exportconstComponent=({ appName }: Props)=>{const{ t }=useTranslation('common');
...
return(<h1>{t('do-more.title',{ appName })}</h1>)}
Expected behavior
Not sure why it's expecting 0 arguments. It follows the basic way to call for a translation AND it's working.
fyi, I nuked all node_modules and reinstalled everything again in case it was a confusion with versions. Let me know what other type of context I can provide.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Uh oh!
There was an error while loading. Please reload this page.
useTranslations Type Mismatch - Expected 0 arguments, but got X
I'm following the set up and everything's working on the browser, but I see a type issue every time that I call the useTranslations
t
function:To Reproduce
Expected behavior
Not sure why it's expecting 0 arguments. It follows the basic way to call for a translation AND it's working.
fyi, I nuked all node_modules and reinstalled everything again in case it was a confusion with versions. Let me know what other type of context I can provide.
Your Environment
runtime version: i.e. browser, nextJS
os: Mac
The text was updated successfully, but these errors were encountered: