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

Cannot find module 'eslint-config-base.js' #6358

Closed
mysticatea opened this issue Jun 9, 2016 · 0 comments
Closed

Cannot find module 'eslint-config-base.js' #6358

mysticatea opened this issue Jun 9, 2016 · 0 comments
Assignees
Labels
accepted There is consensus among the team that this change meets the criteria for inclusion archived due to age This issue has been archived; please open a new issue for any further discussion bug ESLint is working incorrectly core Relates to ESLint's core APIs and features

Comments

@mysticatea
Copy link
Member

mysticatea commented Jun 9, 2016

What version of ESLint are you using?

  • v2.11.1

What parser (default, Babel-ESLint, etc.) are you using?

  • default.

Please show your full configuration:

  • Configuration is the main subject of this issue.
    I use eslint-config-mysticatea sharable config.
    • Case 1 is: {"extends": "mysticatea/es2015"}
    • Case 2 is: {"extends": "mysticatea"}
  • Those 2 configs are the same file (es2015.js) because main: "es2015.js"

What did you do? Please include the actual source code causing the issue.

  • Lint a file with each case configuration.

What did you expect to happen?

  • Both case 1 & 2 work fine. Those 2 config files are the same file.

What actually happened? Please include the actual, raw output from ESLint.

  • Case 1 works fine.
  • Case 2 does not work.
Cannot find module 'eslint-config-base.js'
Referenced from: mysticatea
Referenced from: C:\Users\t-nagashima.AD\Documents\GitHub\sandbox\.eslintrc.json
Error: Cannot find module 'eslint-config-base.js'
Referenced from: mysticatea
Referenced from: C:\Users\t-nagashima.AD\Documents\GitHub\sandbox\.eslintrc.json
    at Object.ModuleResolver.resolve (C:\Users\t-nagashima.AD\Documents\GitHub\sandbox\node_modules\eslint\lib\util\module-resolver.js:75:19)
    at resolve (C:\Users\t-nagashima.AD\Documents\GitHub\sandbox\node_modules\eslint\lib\config\config-file.js:473:33)
    at load (C:\Users\t-nagashima.AD\Documents\GitHub\sandbox\node_modules\eslint\lib\config\config-file.js:490:24)
    at C:\Users\t-nagashima.AD\Documents\GitHub\sandbox\node_modules\eslint\lib\config\config-file.js:386:36
    at Array.reduceRight (native)
    at applyExtends (C:\Users\t-nagashima.AD\Documents\GitHub\sandbox\node_modules\eslint\lib\config\config-file.js:363:28)
    at load (C:\Users\t-nagashima.AD\Documents\GitHub\sandbox\node_modules\eslint\lib\config\config-file.js:525:22)
    at C:\Users\t-nagashima.AD\Documents\GitHub\sandbox\node_modules\eslint\lib\config\config-file.js:386:36
    at Array.reduceRight (native)
    at applyExtends (C:\Users\t-nagashima.AD\Documents\GitHub\sandbox\node_modules\eslint\lib\config\config-file.js:363:28)

es2015.js has extends: "./base.js", but ESLint searched 'eslint-config-base.js' module.


This may be related in #6338.

@mysticatea mysticatea added bug ESLint is working incorrectly core Relates to ESLint's core APIs and features accepted There is consensus among the team that this change meets the criteria for inclusion labels Jun 9, 2016
@mysticatea mysticatea self-assigned this Jun 9, 2016
@eslint-deprecated eslint-deprecated bot locked and limited conversation to collaborators Feb 6, 2018
@eslint-deprecated eslint-deprecated bot added the archived due to age This issue has been archived; please open a new issue for any further discussion label Feb 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
accepted There is consensus among the team that this change meets the criteria for inclusion archived due to age This issue has been archived; please open a new issue for any further discussion bug ESLint is working incorrectly core Relates to ESLint's core APIs and features
Projects
None yet
Development

No branches or pull requests

1 participant