https://gitlab.com/jryancasas/nuxtjs-2.13-issue-with-nuxt-generate
Create a new nuxt project, either using [email protected], or by cloning the repo provided. Then:
# install dependencies
$ yarn install
# build for production (target: server by default)
$ yarn nuxt build
# Try to nuxt generate without rebuilding
$ yarn nuxt generate --no-build --port 7777
Nuxt should be able to generate the website as it does on 2.12
i Modern bundles are detected. Modern mode (server) is enabled now. 19:30:33
FATAL In order to use nuxt export, you need to run nuxt build --target static 19:30:34
at Generator.initiate (node_modules\@nuxt\generator-edge\dist\generator.js:160:15)
โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ โ
โ โ Nuxt Fatal Error โ
โ โ
โ Error: In order to use `nuxt export`, you need to run `nuxt build --target static` โ
โ โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
error Command failed with exit code 1.
CC @Atinux @pi0
Hi :) This should be fixed by #7509
This PR should fix it: https://github.com/nuxt/nuxt.js/pull/7523
@RyanCasas can you confirm with lastest nuxt-edge?
@RyanCasas can you confirm with lastest
nuxt-edge?
It does work with the provided example @Atinux, I still have to try it on more complex scenarios tho. I'll open another issue if that's the case.
Thank you all for your work :)
Most helpful comment
This PR should fix it: https://github.com/nuxt/nuxt.js/pull/7523