Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with 'Unexpected linter output' Function.keys #1250

Closed
aravindkumaremis opened this issue Feb 14, 2019 · 5 comments

Comments

@aravindkumaremis
Copy link

commented Feb 14, 2019

What version of standard?

$ standard --version
12.0.1

What operating system, Node.js, and npm version?

$ node --version
v11.8.0

$ npm --version
6.8.0

What actually happened?

$ ./node_modules/standard/bin/cmd.js test/api/*
standard: Unexpected linter output:

TypeError: Cannot convert undefined or null to object
    at Function.keys (<anonymous>)
    at Object.keys (myproject/node_modules/flat-cache/cache.js:52:19)
    at removeNotFoundFiles (myproject/node_modules/file-entry-cache/cache.js:18:35)
    at Object.create (myproject/node_modules/file-entry-cache/cache.js:31:5)
    at new LintResultCache (myproject/node_modules/eslint/lib/util/lint-result-cache.js:62:46)
    at new CLIEngine (myproject/node_modules/eslint/lib/cli-engine.js:430:37)
    at myproject/node_modules/standard-engine/index.js:119:16
    at myproject/node_modules/deglob/index.js:51:12
    at end (myproject/node_modules/run-parallel/index.js:18:15)
    at done (myproject/node_modules/run-parallel/index.js:22:10)

If you think this is a bug in `standard`, open an issue: https://github.com/standard/standard/issues

Added the following in package.json

  "devDependencies": {
    "standard": "^12.0.1"
  },
  "scripts": {
    "test": "standard && node my-tests.js",
    "pretest": "./node_modules/standard/bin/cmd.js"
  }

Error:

$ npm test

> atlas@1.0.0 pretest myproject
> ./node_modules/standard/bin/cmd.js

standard: Unexpected linter output:

TypeError: Cannot convert undefined or null to object
    at Function.keys (<anonymous>)
    at Object.keys (myproject/node_modules/flat-cache/cache.js:52:19)
    at removeNotFoundFiles (myproject/node_modules/file-entry-cache/cache.js:18:35)
    at Object.create (myproject/node_modules/file-entry-cache/cache.js:31:5)
    at new LintResultCache (myproject/node_modules/eslint/lib/util/lint-result-cache.js:62:46)
    at new CLIEngine (myproject/node_modules/eslint/lib/cli-engine.js:430:37)
    at myproject/node_modules/standard-engine/index.js:119:16
    at myproject/node_modules/deglob/index.js:51:12
    at end (myproject/node_modules/run-parallel/index.js:18:15)
    at done (myproject/node_modules/run-parallel/index.js:22:10)

If you think this is a bug in `standard`, open an issue: https://github.com/standard/standard/issues
npm ERR! Test failed.  See above for more details.
@AngeIII

This comment has been minimized.

Copy link

commented Mar 28, 2019

@aravindkumaremis I have same issue, is there any solution you found?

@AngeIII

This comment has been minimized.

Copy link

commented Mar 28, 2019

$ standard --version && standard
12.0.1
standard: Unexpected linter output:

TypeError: Cannot convert undefined or null to object
    at Function.keys (<anonymous>)
    at Object.keys (/home/pavel/Data/visualcomposer/node_modules/flat-cache/cache.js:52:19)
    at removeNotFoundFiles (/home/pavel/Data/visualcomposer/node_modules/file-entry-cache/cache.js:18:35)
    at Object.create (/home/pavel/Data/visualcomposer/node_modules/file-entry-cache/cache.js:31:5)
    at new LintResultCache (/home/pavel/Data/visualcomposer/node_modules/eslint/lib/util/lint-result-cache.js:62:46)
    at new CLIEngine (/home/pavel/Data/visualcomposer/node_modules/eslint/lib/cli-engine.js:476:37)
    at /home/pavel/Data/visualcomposer/node_modules/standard-engine/index.js:119:16
    at /home/pavel/Data/visualcomposer/node_modules/deglob/index.js:51:12
    at end (/home/pavel/Data/visualcomposer/node_modules/run-parallel/index.js:18:15)
    at done (/home/pavel/Data/visualcomposer/node_modules/run-parallel/index.js:22:10)

If you think this is a bug in `standard`, open an issue: https://github.com/standard/standard/issues
@ahslr

This comment has been minimized.

Copy link

commented Mar 28, 2019

@AngeIII @aravindkumaremis
Delete .eslintcache file. It is stored in the root of the project by default. I think this should work for now.

@zenboss

This comment has been minimized.

Copy link

commented Apr 4, 2019

@AngeIII @aravindkumaremis
Delete .eslintcache file. It is stored in the root of the project by default. I think this should work for now.

It's useful for me, thank you.

@AngeIII

This comment has been minimized.

Copy link

commented Apr 10, 2019

I don't have such file (.eslintcache), also I noticed that with NPM install it works fine, but with yarn install it doesn't.

@lock lock bot locked as resolved and limited conversation to collaborators Jul 9, 2019

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
4 participants
You can’t perform that action at this time.