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

What is the reason why I get a prerender error with the generate command when using the i18n package in Nuxt3? #2396

Closed
Fiyuva opened this issue Sep 10, 2023 · 7 comments

Comments

@Fiyuva
Copy link

Fiyuva commented Sep 10, 2023

Environment

  • Operating System: Windows_NT
  • Node Version: v20.3.0
  • Nuxt Version: 3.7.1
  • CLI Version: 3.7.3
  • Nitro Version: 2.6.2
  • Package Manager: npm@9.6.7
  • Builder: -
  • User Config: typescript, app, css, router, routeRules, modules, plugins, build, nitro, pinia, security, pwa, image, purgecss, i18n
  • Runtime Modules: @pinia/nuxt@0.4.11, @nuxt/image@1.0.0-rc.1, @vite-pwa/nuxt@0.1.1, nuxt-purgecss@2.0.0, @nuxtjs/color-mode@3.3.0, nuxt-security@0.14.4, @nuxtjs/i18n@8.0.0-rc.4
  • Build Modules: -

Reproduction

When I use the Nuxt3 npm run generate command with the i18n package, I receive the following errors, but when I do not use the package, I do not receive the errors. How can I solve this error?

package.json: "@nuxtjs/i18n": "^8.0.0-rc.4",

`modules: [ "@nuxtjs/i18n", ],

i18n: { lazy: true, langDir: "locales", strategy: "prefix_and_default", locales: [ { code: "en", iso: "en-US", name: "English", file: "en.json" }, { code: "tr", iso: "tr-TR", name: "Türkçe", file: "tr.json" }, ], defaultLocale: "tr", }

You can see the errors in the link below

https://stackoverflow.com/questions/77076951/what-is-the-reason-why-i-get-a-prerender-error-with-the-generate-command-when-us

Describe the bug

When I use the Nuxt3 npm run generate command with the i18n package, I receive the following errors, but when I do not use the package, I do not receive the errors. How can I solve this error?

package.json: "@nuxtjs/i18n": "^8.0.0-rc.4",

`modules: [ "@nuxtjs/i18n", ],

i18n: { lazy: true, langDir: "locales", strategy: "prefix_and_default", locales: [ { code: "en", iso: "en-US", name: "English", file: "en.json" }, { code: "tr", iso: "tr-TR", name: "Türkçe", file: "tr.json" }, ], defaultLocale: "tr", }

You can see the errors in the link below

https://stackoverflow.com/questions/77076951/what-is-the-reason-why-i-get-a-prerender-error-with-the-generate-command-when-us

Additional context

No response

Logs

No response

Copy link
Collaborator

kazupon commented Sep 14, 2023

Thank you for your reporting!

We need your minimal reproduction.
Issue guideline is saying:

Please use a template below to create a minimal reproduction, and provide to us your issue cases
👉 Reproduction starter (v8 and higher)
👉 Reproduction starter (edge)

https://github.com/nuxt-modules/i18n/issues/new?assignees=&labels=pending+triage&projects=&template=bug-report.yml

Could you give us your minimal reproduction please?

@Fiyuva
Copy link
Author

Fiyuva commented Sep 14, 2023

How can i give you minimal reproduction?

@Triloworld
Copy link

Triloworld commented Sep 19, 2023

How can i give you minimal reproduction?

Fork this: https://stackblitz.com/github/nuxt/starter/tree/v3
And and add only what cause problem

@Triloworld
Copy link

@Fiyuva share there when you have it. Nobody see link from there. This will help diagnose or implement fix if needed

@github-actions
Copy link

Would you be able to provide a reproduction? 🙏

More info

Why do I need to provide a reproduction?

Reproductions make it possible for us to triage and fix issues quickly with a relatively small team. It helps us discover the source of the problem, and also can reveal assumptions you or we might be making.

What will happen?

If you've provided a reproduction, we'll remove the label and try to reproduce the issue. If we can, we'll mark it as a bug and prioritise it based on its severity and how many people we think it might affect.

If needs reproduction labeled issues don't receive any substantial activity (e.g., new comments featuring a reproduction link), we'll close them. That's not because we don't care! At any point, feel free to comment with a reproduction and we'll reopen it.

How can I create a reproduction?

We have a couple of templates for starting with a minimal reproduction:

👉 Reproduction starter (v8 and higher)
👉 Reproduction starter (edge)

A public GitHub repository is also perfect. 👌

Please ensure that the reproduction is as minimal as possible. See more details in our guide.

You might also find these other articles interesting and/or helpful:

Copy link
Collaborator

kazupon commented Sep 28, 2023

close in-activity
if you have still issue, please you would like to give your minimal reproduction.

thanks!

@kazupon kazupon closed this as not planned Won't fix, can't repro, duplicate, stale Sep 28, 2023
@Fiyuva
Copy link
Author

Fiyuva commented Sep 30, 2023

There was a problem with my computer. I will share it in 3 days.

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

No branches or pull requests

4 participants