I've just installed the next-translated-routes@1.10.2 package and I have been trying to use it. However, I cannot start the application after wrapping the next.config.js with withTranslateRoutes as shown in the documentation:
and I'm getting the error next-translate-routes does not support /app directory yet.
But the problem is I don't have an app directory. So I checked the function that causes the error:
From what I understand, this code var pagesDirs = (0, find_pages_dir_1.findPagesDir)(process.cwd(), false); here is supposed to return an object. But it returns a string instead, therefore var pagesDir = pagesDirs.pages becomes undefined and causes the error.
I've just installed the next-translated-routes@1.10.2 package and I have been trying to use it. However, I cannot start the application after wrapping the next.config.js with withTranslateRoutes as shown in the documentation:
and I'm getting the error next-translate-routes does not support
/app
directory yet.But the problem is I don't have an app directory. So I checked the function that causes the error:
From what I understand, this code
var pagesDirs = (0, find_pages_dir_1.findPagesDir)(process.cwd(), false);
here is supposed to return an object. But it returns a string instead, thereforevar pagesDir = pagesDirs.pages
becomes undefined and causes the error.What can I do to fix it?