https://github.com/begueradj/bug-nuxt-axios-eslint-config
Clone my repository and move to the subsequent directory to run the following commands:
$ yarn install
$ yarn run dev
I expect to launch the server normally
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
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"
}
}
"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.
Most helpful comment
"webpack": "3.11.0"Nuxt 2 uses webpack 4. You should remove that from your dependencies (same goes for
vuewhich is a Nuxt dependency too).