I updated nuxt to 0.8.4 but the lib/nuxt.js is not the same as the github tag. I´m trying to use the new option srcDir. I already deleted the node_modules and yarn.lock, I tried to install using npm and yarn.
My local/installed file: lines 51 to 55
// Env variables
this.dev = this.options.dev
this.dir = (typeof options.rootDir === 'string' && options.rootDir ? options.rootDir : process.cwd())
// If store defined, update store options to true
if (fs.existsSync(join(this.dir, 'store', 'index.js'))) {
https://github.com/nuxt/nuxt.js/blob/v0.8.4/lib/nuxt.js
// Env variables
this.dev = this.options.dev
this.dir = (typeof options.rootDir === 'string' && options.rootDir ? options.rootDir : process.cwd())
this.srcDir = (typeof options.srcDir === 'string' && options.srcDir ? resolve(this.dir, options.srcDir) : this.dir)
// If store defined, update store options to true
if (fs.existsSync(join(this.srcDir, 'store', 'index.js'))) {
My package.json
{
"name": "test-nuxt",
"version": "1.0.0",
"description": "Nuxt.js project",
"author": "",
"private": true,
"dependencies": {
"axios": "^0.15.3",
"express": "^4.14.0",
"nuxt": "^0.8.4"
},
"scripts": {
"dev": "nuxt",
"build": "nuxt build",
"start": "node server",
"generate": "nuxt generate"
}
}
package json inside node_modules/nuxt folder:
{
"_args": [
[
{
"raw": "nuxt@^0.8.4",
"scope": null,
"escapedName": "nuxt",
"name": "nuxt",
"rawSpec": "^0.8.4",
"spec": ">=0.8.4 <0.9.0",
"type": "range"
},
"C:\\Users\\DNPO\\projects\\church-nuxt"
]
],
"_from": "nuxt@>=0.8.4 <0.9.0",
"_id": "nuxt@0.8.4",
<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This bug report is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c43">#c43</a>)</em></sub></div>