hozana / next-translate-routes

Flexible and translated routes for Next.js without custom server
MIT License
115 stars 30 forks source link

Next 12 crash #3

Closed mcpll closed 2 years ago

mcpll commented 3 years ago

Hi all, i try to use your plugin with next 12. But after update i received this error:

TypeError: Cannot read property 'push' of null at enhanceNextRouter (/node_modules/next-translate-routes/index.js:231:19)

mxsotomayor commented 3 years ago

Same issue here, on _app.tsx file, when wrapping with withTranslateRoutes.

pilleck commented 3 years ago

Hey, we have exactly the same issue! Thanks for opening this issue @mcpll!

pilleck commented 3 years ago

Hey @cvolant can you may take a look at this issue? Thank you in advance! 🙏

cvolant commented 3 years ago

@pilleck I will try to make it compatible with Next 12 by the end of the week.

pilleck commented 3 years ago

Thank you @cvolant! 😍

cvolant commented 3 years ago

@pilleck, can you try the v1.5.5? I hope it solves you issue, but I am not sure since I cannot reproduce the bug you describe. If it persists, could you post here a link to a repro so that I can investigate?

pilleck commented 2 years ago

Hey @cvolant it works very well! Thank you 👍