Closed drj17 closed 3 years ago
I think is this line:
const { table = {} } = await import(`i18n/${locale}`)
Try using a relative path
const { table = {} } = await import(`../i18n/${locale}`)
Hey, I think it was actually a bug in NextJS, upgrading to v10.0.5-canary.1
fixed it for me. FYI the issue was that the locale returned from useRouter
was undefined.
Works fine in dev mode, but when using
yarn build
none of the string are showing up.next.config.js
en.ts
login.tsx
It seems when I check
locale()
in the console that it is undefined. Am I doing something wrong here?