Skip to content
This repository was archived by the owner on Sep 28, 2020. It is now read-only.
This repository was archived by the owner on Sep 28, 2020. It is now read-only.

Incorrect eslintPkgPath: .../api.js/package.json #282

Closed
@rdhelms

Description

@rdhelms
  • Operating System: Mac OS
  • Node Version: 10.15.1
  • NPM Version: 6.4.1
  • webpack Version: 4.28.4
  • eslint-loader Version: 2.2.0

Expected Behavior

Expecting regular Vue builds to succeed.

Actual Behavior

See vuejs/vue-cli#4231

Vue builds are failing due to an eslint-loader error.

Code

This addition seems to result in eslintPkgPath sometimes adding /package.json to the path in situations where it should not:

  var eslintPkgPath = "eslint/package.json";
  if (userEslintPath) {
    eslintPkgPath = userEslintPath + "/package.json";
  }

  var eslintVersion = require(eslintPkgPath).version;

How Do We Reproduce?

See vuejs/vue-cli#4231

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions