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

Pull data using fetch instead of static JSON data #432

Open
turkgenciyim opened this issue Nov 1, 2024 · 0 comments
Open

Pull data using fetch instead of static JSON data #432

turkgenciyim opened this issue Nov 1, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@turkgenciyim
Copy link

Describe the bug
In my Nextjs project, I want to pull data using dynamic data instead of static data in the json or js files we import in my client.ts and server.ts files. Even though I do this, the error I get is frustrating and I still can't solve it.

Error Message:

The generated code contains 'async/await' because this module is using "topLevelAwait".
However, your target environment does not appear to support 'async/await'.
As a result, the code may not run as expected or may cause runtime errors.

Import trace for requested module:
./src/i18n/tr.ts
./src/i18n/client.ts

Expected behavior
pull data dynamically using fetch

Screenshots
image
image
image

About (please complete the following information):

  • next-international version 1.3.0
  • Next.js version 15.0.1
@turkgenciyim turkgenciyim added the bug Something isn't working label Nov 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant