Git Product home page Git Product logo

.github's People

Contributors

haya14busa avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

ryoctrl

.github's Issues

Failed to load plugin 'import' declared | failed to unmarshal rdjson (DiagnosticResult)

Versions

  • GitHub Action environment
    • actions/setup-node@v2 --> node-version: '14.6.0'
    • Runs npm install --only=dev
    • reviewdog/[email protected]
      • Outputs eslint version:v8.23.0 in logs
  • Relevant in package.json modules
    • "eslint": "^8.23.0"
    • "eslint-config-airbnb-base": "^15.0.0"
    • "eslint-config-prettier": "^8.5.0"
    • "eslint-plugin-import": "^2.26.0"

ESLint config

.eslintrc.json
{
    "env": {
        "node": true,
        "commonjs": true,
        "es2020": true,
        "mocha": true
    },
    "globals": {
        "expect": "readonly"
    },
    "parserOptions": { "ecmaVersion": 2020 },
    "extends": ["airbnb-base", "prettier"],
    "rules": {
        "no-unused-vars": [
            "error",
            {
                "argsIgnorePattern": "next",
                "destructuredArrayIgnorePattern": "."
            }
        ],
        "consistent-return": "off",
        "nonblock-statement-body-position": ["off"],
        "camelcase": "off",
        "no-use-before-define": ["warn", { "functions": false }],
        "no-param-reassign": [
            "warn",
            {
                "props": true,
                "ignorePropertyModificationsForRegex": ["^acc"]
            }
        ],
        "no-restricted-syntax": ["error", "FunctionExpression"],
        "spaced-comment": [
            "error",
            "always",
            { "block": { "exceptions": ["*"] } }
        ],
        "no-unused-expressions": ["error", { "allowTernary": true }],
        "no-shadow": "off",
        "import/no-unresolved": "off"
    },
    "overrides": [
        {
            "files": ["*.spec.js"],
            "rules": {
                "no-unused-expressions": "off"
            }
        }
    ]
}

Issue

After installing cookie-session, the reviewdog step fails with the following:

Oops! Something went wrong! :(
  
  ESLint: 8.23.0
  
  Error: Failed to load plugin 'import' declared in '../.eslintrc.json » eslint-config-airbnb-base » 
/home/runner/work/.../server/node_modules/eslint-config-airbnb-base/rules/imports.js':
Cannot find module 'debug'
  Require stack:
  - /home/runner/work/.../server/node_modules/eslint-module-utils/ModuleCache.js
  - /home/runner/work/.../server/node_modules/eslint-module-utils/resolve.js
  - /home/runner/work/.../server/node_modules/eslint-plugin-import/lib/rules/no-unresolved.js
  - /home/runner/work/.../server/node_modules/eslint-plugin-import/lib/index.js
  - /home/runner/work/.../server/node_modules/@eslint/eslintrc/dist/eslintrc.cjs
      at Function.Module._resolveFilename (internal/modules/cjs/loader.js:1065:15)
      at Function.Module._load (internal/modules/cjs/loader.js:911:27)
      at Module.require (internal/modules/cjs/loader.js:1125:19)
      at require (internal/modules/cjs/helpers.js:75:18)
      at Object.<anonymous> (/home/runner/work/.../server/node_modules/eslint-module-utils/ModuleCache.js:4:13)
      at Module._compile (internal/modules/cjs/loader.js:12[36](https://github.com/.../runs/8156170784?check_suite_focus=true#step:5:39):30)
      at Object.Module._extensions..js (internal/modules/cjs/loader.js:1257:10)
      at Module.load (internal/modules/cjs/loader.js:1085:32)
      at Function.Module._load (internal/modules/cjs/loader.js:950:14)
      at Module.require (internal/modules/cjs/loader.js:1125:19)
  reviewdog: failed to unmarshal rdjson (DiagnosticResult): proto: syntax error (line 1:1): unexpected token 
Error: Process completed with exit code 1.

I have not been able to find anything relevant/helpful related to the error log.

This error only occurs when I install a new dependency. Adding a random comment within the code does not lead to this error.

Please let me know if I'm missing anything...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.