Nuxt.js: Can not launch the server when using Nuxt.js + Axios + Eslint + Vuetify.js

Created on 28 Nov 2018  Â·  2Comments  Â·  Source: nuxt/nuxt.js

Version

v2.3.4

Reproduction link

https://github.com/begueradj/bug-nuxt-axios-eslint-config

Steps to reproduce

Clone my repository and move to the subsequent directory to run the following commands:

$ yarn install
$ yarn run dev

What is expected ?

I expect to launch the server normally

What is actually happening?

When I run yarn run dev I get this error message:

✖ Server
  Compiled with some errors in 1.81s


 ERROR  Failed to compile with 7 errors                                                                                                      friendly-errors 22:40:31

These relative modules were not found:                                                                                                       friendly-errors 22:40:31
                                                                                                                                             friendly-errors 22:40:31
* ../assets/style/app.styl in ./.nuxt/App.js                                                                                                 friendly-errors 22:40:31
* ./components/nuxt-error.vue in ./.nuxt/index.js                                                                                            friendly-errors 22:40:31
* ./nuxt-error.vue in ./.nuxt/components/nuxt.js                                                                                             friendly-errors 22:40:31
* ./components/nuxt-loading.vue in ./.nuxt/App.js                                                                                            friendly-errors 22:40:31
* ../pages/inspire.vue in ./.nuxt/router.js                                                                                                  friendly-errors 22:40:31
* ../pages/index.vue in ./.nuxt/router.js                                                                                                    friendly-errors 22:40:31
* ../layouts/default.vue in ./.nuxt/App.js                                                                                                   friendly-errors 22:40:31
ℹ Waiting for file changes     

Additional comments?

Here is my package.json file:

{
  "name": "appli",
  "version": "1.0.0",
  "description": "My divine Nuxt.js project",
  "author": "begueradj",
  "private": true,
  "scripts": {
    "dev": "nuxt",
    "build": "nuxt build",
    "start": "nuxt start",
    "generate": "nuxt generate",
    "lint": "eslint --ext .js,.vue --ignore-path .gitignore .",
    "precommit": "npm run lint"
  },
  "dependencies": {
    "@nuxtjs/axios": "^5.0.0",
    "cross-env": "^5.2.0",
    "nuxt": "^2.0.0",
    "vue": "^2.5.10",
    "vuetify": "^1.2.4",
    "webpack": "3.11.0"
  },
  "devDependencies": {
    "babel-eslint": "^8.2.1",
    "eslint": "^4.0.0",
    "eslint-loader": "^2.0.0",
    "eslint-plugin-vue": "^4.0.0",
    "nodemon": "^1.11.0",
    "stylus": "^0.54.5",
    "stylus-loader": "^3.0.2"
  }
}

This bug report is available on Nuxt community (#c8232)
bug-report

Most helpful comment

"webpack": "3.11.0"

Nuxt 2 uses webpack 4. You should remove that from your dependencies (same goes for vue which is a Nuxt dependency too).

All 2 comments

"webpack": "3.11.0"

Nuxt 2 uses webpack 4. You should remove that from your dependencies (same goes for vue which is a Nuxt dependency too).

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

vadimsg picture vadimsg  Â·  3Comments

maicong picture maicong  Â·  3Comments

bimohxh picture bimohxh  Â·  3Comments

surmon-china picture surmon-china  Â·  3Comments

shyamchandranmec picture shyamchandranmec  Â·  3Comments