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

Critical dependency: the request of a dependency is an expression #9

Closed
GenisDiaz opened this issue Mar 11, 2023 · 4 comments
Closed

Comments

@GenisDiaz
Copy link

GenisDiaz commented Mar 11, 2023

What version of this package are you using?
2.0.2
What operating system, Node.js, and npm version?

  • Node: v18.14.2

What happened?

When I use nextTranslate in the next.config.js then I see the message Critical dependency: the request of a dependency is an expression in the console when I try to run the app, then the translations are not working at all.

I'm using the newest nextjs 13.2.4 version with the appDir functionality instead of pages.

I don't know if I'm doing something wrong or maybe it's something new in the newest version because in other apps with older nextjs version I'm using next-translation instead of next-translation-plugin and the other ones are working good.

@aralroca
Copy link
Owner

I tried to reproduce it in the latest version and I can't reproduce it. Maybe is solved with this related issue: #32 Can you confirm that now is working for your in the latest version? Thanks!

@bluelakee02
Copy link
Contributor

I created a fix #72
Here is a patch if somebody needs it right away https://github.com/bluelakee02/next-translate-plugin-patch

@zakidze
Copy link

zakidze commented Oct 13, 2023

I created a fix #72 Here is a patch if somebody needs it right away https://github.com/bluelakee02/next-translate-plugin-patch

HERRROOOOOOO

@aralroca
Copy link
Owner

Already available in 2.6.1 👍 Thanks for the contribution @bluelakee02

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

4 participants