You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
What can I do to fix it?
The text was updated successfully, but these errors were encountered:
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?
The text was updated successfully, but these errors were encountered: