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

[🐛 Bug]: Nextra i18n Build Does Not Show Anything #157

Closed
1 task done
anaclumos opened this issue Apr 7, 2023 · 5 comments · Fixed by #227
Closed
1 task done

[🐛 Bug]: Nextra i18n Build Does Not Show Anything #157

anaclumos opened this issue Apr 7, 2023 · 5 comments · Fixed by #227
Assignees
Labels
bug Something isn't working
Milestone

Comments

@anaclumos
Copy link

Cli version

0.7.0

Next.js related information

13.2.4

Vercel version

28.18.3

Description

Nextra will success compiling, but will return an empty html.

Reproduction

github.com/shuding/nextra

Additional Information

No response

Would you like to help?

  • Would you like to help fixing this bug?
@anaclumos anaclumos added the bug Something isn't working label Apr 7, 2023
@dario-piotrowicz
Copy link
Member

Hi @anaclumos thanks for the issue 🙂

I've tried making a simple nextra app and it does seem to look fine as you can see here (source code)

So I am wondering why it doesn't work for your app. Maybe you're using some Nextra features that are breaking it? (my app is very very simple as you can see)

Anyways if you want to explore and help fixing the issue you're encountering you're more than welcome to do so, please let me know if you need any assistance 🙂 (I am planning to soon add playground features to help develop and test the package locally, alongside a helpful guide, sorry that's still not in place)

@anaclumos
Copy link
Author

I am using Nextra i18n. I think that may be the one breaking things, will have to check soon.

@anaclumos
Copy link
Author

Also. Are you using Next.js Static Export? Next i18n does not support static exporting 😥

@james-elicx
Copy link
Contributor

I am using Nextra i18n. I think that may be the one breaking things, will have to check soon.

The i18n option in next.config.js is not currently supported by next-on-pages because of how routing is implemented. It's possible that it may be supported in the future, but it's worth noting that Next.js is trying to move away from that configuration option with the new app directory.

I suspect that this may be why you aren't seeing anything when running your app.

Someone wrote some workarounds in #132, although I'm of the opinion that those just remove the Next.js internationalization support completely and won't work with the new routing system outlined in #129.

@anaclumos anaclumos changed the title [🐛 Bug]: Nextra Build Does Not Show Anything [🐛 Bug]: Nextra i18n Build Does Not Show Anything Apr 11, 2023
@dario-piotrowicz dario-piotrowicz added this to the I18n milestone May 5, 2023
@dario-piotrowicz
Copy link
Member

@anaclumos , we've just merged a PR @james-elicx made that should have fixed this issue, if you want please have a look using our latest beta version: https://www.npmjs.com/package/@cloudflare/next-on-pages/v/0.0.0-86df485 to see if everything works as expected for you now 🙂 🙏

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

Successfully merging a pull request may close this issue.

3 participants