No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

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

    Help
    2
    2
    715
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      ddenev last edited by

      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?

      1 Reply Last reply Reply Quote 2
      • prashant
        prashant last edited by

        what is the solutions

        1 Reply Last reply Reply Quote 0
        • First post
          Last post