Skip to content
This repository has been archived by the owner on Aug 5, 2024. It is now read-only.

i18n support not compatible with "next export" #23

Open
KHVBui opened this issue Jul 25, 2022 · 0 comments
Open

i18n support not compatible with "next export" #23

KHVBui opened this issue Jul 25, 2022 · 0 comments

Comments

@KHVBui
Copy link

KHVBui commented Jul 25, 2022

When trying to run "next export" in package.json in order to export the app to static HTML, an error is thrown:
"Error: i18n support is not compatible with next export. See here for more info on deploying: https://nextjs.org/docs/deployment"

Inside package.json:
"scripts": {
"dev": "next dev",
"build": "next build && next export",
"start": "next start"
},

Steps to recreate:

  1. Use command "npm run build" or "yarn run build" with the settings in package.json as above.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant