Quasar with ESlint 6.x - cannot find module 'eslint-plugin-import'



  • Hi,

    I upgraded the following packages:

    • eslint 5.16.0 => 6.7.1
    • eslint-plugin-vue 5.2.3 =>6.0.1
    • @vue/eslint-config-standard 4.0.0 => 5.0.0

    and now when I start my dev app I get a list of the following warnings:

    Module Warning (from ./node_modules/eslint-loader/dist/cjs.js):
    Failed to load plugin 'import' declared in '.eslintrc.js » @vue/eslint-config-standard » D:\Projects\editor\node_modules\eslint-config-standard\index.js': Cannot find module 'eslint-plugin-import'
    Require stack:
    - D:\Projects\editor\__placeholder__.js
    

    I also get an error in WebStorm (when I open a .js file) with a stacktrace:

    Error: Failed to load plugin 'import' declared in '.eslintrc.js » @vue/eslint-config-standard » D:\Projects\editor\node_modules\eslint-config-standard\index.js': Cannot find module 'eslint-plugin-import'
    Require stack:
    - D:\Projects\editor\__placeholder__.js
        at Function.Module._resolveFilename (internal/modules/cjs/loader.js:954:17)
        at Function.resolve (internal/modules/cjs/helpers.js:75:19)
        at Object.resolve (D:\Projects\editor\node_modules\eslint\lib\shared\relative-module-resolver.js:44:50)
        at ConfigArrayFactory._loadPlugin (D:\Projects\editor\node_modules\eslint\lib\cli-engine\config-array-factory.js:957:39)
        at D:\Projects\editor\node_modules\eslint\lib\cli-engine\config-array-factory.js:846:33
        at Array.reduce (<anonymous>)
        at ConfigArrayFactory._loadPlugins (D:\Projects\editor\node_modules\eslint\lib\cli-engine\config-array-factory.js:842:22)
        at ConfigArrayFactory._normalizeObjectConfigDataBody (D:\Projects\editor\node_modules\eslint\lib\cli-engine\config-array-factory.js:665:32)
        at _normalizeObjectConfigDataBody.next (<anonymous>)
        at ConfigArrayFactory._normalizeObjectConfigData (D:\Projects\editor\node_modules\eslint\lib\cli-engine\config-array-factory.js:594:20)
    Process finished with exit code -1
    

    Is Quasar compatible with ESlint 6.x or shall I stick to 5.x?


Log in to reply