diff --git a/packages/generator/src/generator.js b/packages/generator/src/generator.js index e50d945fe1..6a67f63631 100644 --- a/packages/generator/src/generator.js +++ b/packages/generator/src/generator.js @@ -83,7 +83,7 @@ export default class Generator { ) } const config = this.getBuildConfig() - if (!config || config.target !== TARGETS.static) { + if (!config || (config.target !== TARGETS.static && !this.options._legacyGenerate)) { throw new Error( `In order to use \`nuxt export\`, you need to run \`nuxt build --target static\`` )