"scripts": {
"dev": "nuxt",
"build": "nuxt build",
"start": "nuxt start",
"spa": "nuxt start 鈥攎ode spa",
"generate": "nuxt generate",
"lint": "eslint --ext .js,.vue --ignore-path .gitignore .",
"precommit": "npm run lint"
}
I run npm run spa and I get this Error
No build files found, please run nuxt build before launching nuxt start
Then I run npm run build before npm run spa still gets the same error.
It works when using npm run start without the -mode spa
Hi @jericopulvera
Actually the mode option is not added yet, but you can set the mode in your nuxt.config.js in the meantime:
module.exports = {
mode: 'spa'
}
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Most helpful comment
Hi @jericopulvera
Actually the
modeoption is not added yet, but you can set the mode in yournuxt.config.jsin the meantime: