aralroca / next-translate-plugin

Next-translate plugin for i18n in Next.js 🌍 - Load page translations and use them in an easy way!
MIT License
30 stars 17 forks source link

The expression is not callable #74

Open VinceBT-BG opened 11 months ago

VinceBT-BG commented 11 months ago

What version of this package are you using? 2.6.0

What operating system, Node.js, and npm version? MacOS, Node 19.16, PNPM 8.7.4

What happened? I use // @ts-check in all my .js files to have a better DX but it seems like the import is not considered as a function:

2023-10-18 09 58 52

What did you expect to happen? No errors, since in the source code, the function takes a NextConfig and returns a NextConfig

Are you willing to submit a pull request to fix this bug? Yes, but I don't have a clue what's happening

MonstraG commented 5 months ago

Which version of typescript do you have? This started appearing when I did "typescript": "5.3.3" -> "typescript": "5.4.5" switch