Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I'm using next@11.1.2 with pages router, but still getting the "does not support /app directory yet." error #93

Open
pakyardim opened this issue Apr 15, 2024 · 1 comment

Comments

@pakyardim
Copy link

pakyardim commented Apr 15, 2024

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:

const withTranslateRoutes = require('next-translate-routes/plugin')

module.exports = withTranslateRoutes({
  i18n: {
    locales: ['en', 'fr', 'es', 'pl'],
    defaultLocale: 'pl',
  },
})

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:

image

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?

@pakyardim
Copy link
Author

I suppose you have fixed it but haven't released it yet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant