question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Module build failed (from ./node_modules/eslint-loader/index.js):

See original GitHub issue

Version

3.4.0

Environment info

Environment Info:

  System:
    OS: macOS 10.14
    CPU: (4) x64 Intel(R) Core(TM) i5-6500 CPU @ 3.20GHz
  Binaries:
    Node: 10.12.0 - /usr/local/bin/node
    Yarn: Not Found
    npm: 6.7.0 - /usr/local/bin/npm
  Browsers:
    Chrome: 73.0.3683.86
    Firefox: Not Found
    Safari: 12.0
  npmPackages:
    @vue/babel-helper-vue-jsx-merge-props:  1.0.0-beta.3 
    @vue/babel-plugin-transform-vue-jsx:  1.0.0-beta.3 
    @vue/babel-preset-app:  3.5.5 
    @vue/babel-preset-jsx:  1.0.0-beta.3 
    @vue/babel-sugar-functional-vue:  1.0.0-beta.3 
    @vue/babel-sugar-inject-h:  1.0.0-beta.3 
    @vue/babel-sugar-v-model:  1.0.0-beta.3 
    @vue/babel-sugar-v-on:  1.0.0-beta.3 
    @vue/cli-overlay:  3.5.1 
    @vue/cli-plugin-babel: ^3.0.3 => 3.5.5 
    @vue/cli-plugin-eslint: ^3.0.3 => 3.5.1 
    @vue/cli-service: ^3.0.3 => 3.5.3 
    @vue/cli-shared-utils:  3.5.1 
    @vue/component-compiler-utils:  2.6.0 
    @vue/preload-webpack-plugin:  1.1.0 
    @vue/web-component-wrapper:  1.2.0 
    shards-vue: ^1.0.7 => 1.0.7 
    vue: ^2.5.17 => 2.6.10 
    vue-clickaway:  2.2.2 
    vue-eslint-parser:  2.0.3 
    vue-hot-reload-api:  2.3.3 
    vue-loader:  15.7.0 
    vue-router: ^3.0.1 => 3.0.3 
    vue-style-loader:  4.1.2 
    vue-template-compiler: ^2.5.17 => 2.6.10 
    vue-template-es2015-compiler:  1.9.1 
    vuejs-datepicker:  1.5.4 
  npmGlobalPackages:
    @vue/cli: 3.4.0

Steps to reproduce

?

What is expected?

Smooth running of npm run serve

What is actually happening?

Error: Cannot find module ‘@vue/eslint-config-airbnb


vue-cli-service serve

INFO Starting development server… 98% after emitting CopyPlugin

ERROR Failed to compile with 1 errors 4:55:59 PM

Module build failed (from ./node_modules/eslint-loader/index.js): Error: Cannot find module ‘@vue/eslint-config-airbnb’ Referenced from: /Users/michaelroberts/Developer/repos/hug-front-end/.eslintrc.js at ModuleResolver.resolve (/Users/michaelroberts/Developer/repos/hug-front-end/node_modules/@vue/cli-plugin-eslint/node_modules/eslint/lib/util/module-resolver.js:74:19) at resolve (/Users/michaelroberts/Developer/repos/hug-front-end/node_modules/@vue/cli-plugin-eslint/node_modules/eslint/lib/config/config-file.js:479:28) at load (/Users/michaelroberts/Developer/repos/hug-front-end/node_modules/@vue/cli-plugin-eslint/node_modules/eslint/lib/config/config-file.js:551:26) at configExtends.reduceRight (/Users/michaelroberts/Developer/repos/hug-front-end/node_modules/@vue/cli-plugin-eslint/node_modules/eslint/lib/config/config-file.js:425:36) at Array.reduceRight (<anonymous>) at applyExtends (/Users/michaelroberts/Developer/repos/hug-front-end/node_modules/@vue/cli-plugin-eslint/node_modules/eslint/lib/config/config-file.js:403:26) at loadFromDisk (/Users/michaelroberts/Developer/repos/hug-front-end/node_modules/@vue/cli-plugin-eslint/node_modules/eslint/lib/config/config-file.js:523:22) at Object.load (/Users/michaelroberts/Developer/repos/hug-front-end/node_modules/@vue/cli-plugin-eslint/node_modules/eslint/lib/config/config-file.js:559:20) at Config.getLocalConfigHierarchy (/Users/michaelroberts/Developer/repos/hug-front-end/node_modules/@vue/cli-plugin-eslint/node_modules/eslint/lib/config.js:227:44) at Config.getConfigHierarchy (/Users/michaelroberts/Developer/repos/hug-front-end/node_modules/@vue/cli-plugin-eslint/node_modules/eslint/lib/config.js:179:43) at Config.getConfigVector (/Users/michaelroberts/Developer/repos/hug-front-end/node_modules/@vue/cli-plugin-eslint/node_modules/eslint/lib/config.js:286:21) at Config.getConfig (/Users/michaelroberts/Developer/repos/hug-front-end/node_modules/@vue/cli-plugin-eslint/node_modules/eslint/lib/config.js:329:29) at processText (/Users/michaelroberts/Developer/repos/hug-front-end/node_modules/@vue/cli-plugin-eslint/node_modules/eslint/lib/cli-engine.js:163:33) at CLIEngine.executeOnText (/Users/michaelroberts/Developer/repos/hug-front-end/node_modules/@vue/cli-plugin-eslint/node_modules/eslint/lib/cli-engine.js:620:17) at lint (/Users/michaelroberts/Developer/repos/hug-front-end/node_modules/eslint-loader/index.js:263:17) at transform (/Users/michaelroberts/Developer/repos/hug-front-end/node_modules/eslint-loader/index.js:237:18)

You may use special comments to disable some warnings. Use // eslint-disable-next-line to ignore the next line. Use /* eslint-disable */ to ignore all warnings in a file.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

4reactions
jonathanCNITAcommented, Jul 3, 2019

Sorry for post here the trick for npm you mentioned here #4231 works fine. Thanks!

Original post ----- Hello, same here. I use vue cli version 3.6:

  • vue create myproject
  • choose default settings
  • cd myproject
  • npm run serve And get this error
 INFO  Starting development server...
 98% after emitting CopyPlugin                                                 

 ERROR  Failed to compile with 1 errors

Module build failed (from ./node_modules/eslint-loader/index.js):
Error: Cannot find module '/Users/toto/Documents/programming/VueProjects/myproject/node_modules/eslint/lib/api.js/package.json'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:582:15)
    at Function.Module._load (internal/modules/cjs/loader.js:508:25)
    at Module.require (internal/modules/cjs/loader.js:637:17)
    at require (internal/modules/cjs/helpers.js:22:18)
    at Object.module.exports (/Users/mcz/Documents/programming/VueProjects/myproject/node_modules/eslint-loader/index.js:170:23)

You may use special comments to disable some warnings.
Use // eslint-disable-next-line to ignore the next line.
Use /* eslint-disable */ to ignore all warnings in a file.

I use this yesterday and everythings worked fine. tested on 3.6.3 & 3.7.0 Any idea

3reactions
lucas-hugdahlcommented, Jul 3, 2019

This is an issue for me as well. I wish this wasn’t closed since it hasn’t been resolved.

Read more comments on GitHub >

github_iconTop Results From Across the Web

5 - Stack Overflow
Module build failed (from ./node_modules/eslint-loader/index.js): Error: Cannot find module 'eslint/lib/formatters/stylish' · Ask Question.
Read more >
Search - appsloveworld
[Solved]-Module build failed (from ./node_modules/eslint-loader/index.js): Error: Cannot find module 'eslint/lib/formatters/stylish'-Vue.js.
Read more >
Vue.js - 程序员宅基地
Module build failed (from ./node_modules/eslint-loader/index.js): Error: No ESLint configuration found. at Config.getLocalConfigHierarchy (D:\study\vue ...
Read more >
No ESLint configuration found - Material Design for Bootstrap
Module build failed (from ./node_modules/eslint-loader/index.js): Error: No ESLint configuration found. at Config.getLocalConfigHierarchy (/Users/olarisrey/ ...
Read more >
ts-loader - npm
npm version build and test Downloads node version code style: prettier ... the build on TypeScript compilation error; baseUrl / paths module ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found