Nuxt.js: How to run no ssr mode?

Created on 7 Aug 2017  路  2Comments  路  Source: nuxt/nuxt.js

"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

This question is available on Nuxt.js community (#c1157)
question

Most helpful comment

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'
}

All 2 comments

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

maicong picture maicong  路  3Comments

shyamchandranmec picture shyamchandranmec  路  3Comments

surmon-china picture surmon-china  路  3Comments

mattdharmon picture mattdharmon  路  3Comments

vadimsg picture vadimsg  路  3Comments