question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ESLint CLI gives no information about exceptions thrown on plugin load

See original GitHub issue

What version of ESLint are you using? 2.13.1 (with eslint-plugin-react 6.0.0)

What parser (default, Babel-ESLint, etc.) are you using? Default (this shouldn’t matter)

Please show your full configuration:

{
    "plugins": ["react"]
}

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

$ eslint --debug someFile.js

What did you expect to happen? Plugin loads successfully, or if it fails to load, the exception thrown should show up in eslint --debug.

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

eslint:cli Running on files +0ms
eslint:ignored-paths Looking for ignore file in /path/to/root +88ms
eslint:ignored-paths Could not find ignore file in cwd +3ms
eslint:glob-util Creating list of files to process. +0ms
eslint:cli-engine Processing /path/to/js/file +23ms
eslint:cli-engine Linting /path/to/js/file +2ms
eslint:config Constructing config for /path/to/js/file +1ms
eslint:config Using .eslintrc and package.json files +0ms
eslint:config Loading /.eslintrc +3ms
eslint:config-file Loading config file: /.eslintrc +1ms
eslint:plugins Failed to load plugin eslint-plugin-react. Proceeding without it. +212ms

With no indication of why the plugin failed to load. In this case, it wasn’t due to the plugin not being available, but rather the require() failed due to something wrong with the plugin’s main file.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
platinumazurecommented, Sep 27, 2016

TSC Summary: This issue is accepted, but I wanted to see if this merited being included on the core roadmap project.

TSC Question: Should this issue be added to the core roadmap project?

1reaction
platinumazurecommented, Aug 9, 2016

In addition, I’m wondering if we want to try to detect if the plugin existed (but threw an exception on require) vs the plugin didn’t exist, and modify the pretty message template accordingly.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ESLint not working in VS Code? - Stack Overflow
To verify, press Ctrl + Shift + U in VSCode to open the Output panel after opening a JavaScript file with a known...
Read more >
Rules - ESLint - Pluggable JavaScript Linter
A pluggable and configurable linter tool for identifying and reporting on patterns in JavaScript. Maintain your code quality with ease.
Read more >
ESLint - npm
ESLint is a tool for identifying and reporting on patterns found in ECMAScript/JavaScript code. In many ways, it is similar to JSLint and...
Read more >
How I solved and debugged my Webpack issue through trial ...
But I still decided to give it a shot. npm install webpack-serve --save-dev. I created serve.config.js const serve = require('webpack- ...
Read more >
eslint-plugin-jsdoc - npm Package Health Analysis - Snyk
Learn more about eslint-plugin-jsdoc: package health score, popularity, security, ... (any exceptions to this format are explained within that rule's docs).
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found