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

Error: missing_message when use generateMetaData async function #555

Closed
xasanof17 opened this issue Oct 8, 2023 · 4 comments
Closed

Error: missing_message when use generateMetaData async function #555

xasanof17 opened this issue Oct 8, 2023 · 4 comments
Labels
bug Something isn't working reproduction-missing unconfirmed Needs triage.

Comments

@xasanof17
Copy link

Description

I have used the source code to write layout.tsx and this error
image
there is my generateMetadata function =>
code
so there is getMessages function
code
but app is working. There is simple to use LocaleLayout metadata me to written like this. but warning not stopping by show

Mandatory reproduction URL (CodeSandbox or GitHub repository)

https://github.com/xasanof17/greencard/tree/main/app

Reproduction description

Steps to reproduce:

  1. Open reproduction
  2. Click on [locale] directory
  3. See error on layout.tsx
  4. I think vercel's error for dynamic translation

Expected behaviour

I want to fix this error and use dynamic translations with different objects

@xasanof17 xasanof17 added bug Something isn't working unconfirmed Needs triage. labels Oct 8, 2023
@amannn
Copy link
Owner

amannn commented Oct 9, 2023

I unfortunately have errors running your reproduction:

❯ npm run dev

> [email protected] dev
> i18nexus pull && next dev

error: required option '-k, --api-key <apiKey>' not specified

I tried removing i18nexus pull from the dev script, but your app fails to render:

Screenshot 2023-10-09 at 12 07 23

@github-actions
Copy link

github-actions bot commented Oct 9, 2023

Thank you for your report.

Unfortunately, the reproduction is missing or incomplete, and as such we cannot investigate this issue. Please add a reproduction to the issue, otherwise it will be closed automatically.

Templates:

Creating a good bug report takes time.

To help us resolve the issue quickly, please simplify the reproduction as much as possible by removing any unnecessary code, files, and dependencies that are not directly related to the problem. The easier it is for us to see the issue, the faster we can help you.

Apart from the reproduction, make sure to include the precise steps on how to reproduce the issue, e.g.:

  1. Open reproduction
  2. Click on …
  3. See error: …

Thank you for your understanding!

FAQ

"I've included a reproduction, what is missing?"

This comment might have been added because your reproduction doesn't point to either a CodeSandbox or a public GitHub repository where the issue can be reproduced.

Please make sure:

  1. If you've linked to a CodeSandbox, make sure to save the latest changes.
  2. If you've linked to a GitHub repository, make sure that you've committed and pushed the latest changes.
  3. Linking to other resources, e.g. to the docs, unfortunately doesn't help to reproduce your issue.

@github-actions
Copy link

This issue has been automatically closed because it is missing a reproduction and there hasn't been any activity for 7 days. If the problem persists, please create a new bug report.

@github-actions github-actions bot added the Stale label Oct 17, 2023
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Oct 17, 2023
@ParfenenkovEdit
Copy link

Got the same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working reproduction-missing unconfirmed Needs triage.
Projects
None yet
Development

No branches or pull requests

3 participants