When I try building my next.js project using 'yarn build':
mr-ezak opened this issue · 2 comments
mr-ezak commented
martinkr commented
Hi @mr-ezak,
Thank you for reaching out. I'm trying to understand your issue: are you trying to run yarn build for this repository or your project?
Cheers!
mr-ezak commented
Tnx a lot for answering, I was trying to use "yarn build" in my own project but I keep receiving errors for using the "t" function :
import { useTranslation } from 'next-export-i18n' const {t} = useTranslation()
But then I realized that I was using the "t" function multiple times and nested which is wrong, So when I used it properly problem got solved, and "yarn build" worked perfectly.
Thanks again for such an amazing package, Keep up the good work.🫡