Help us understand the problem. What is going on with this article?

VSCodeのESLintで出るエラーを解決する

More than 1 year has passed since last update.

昨日からVSCodeとESLintを使い始めました。

その時、エラーが出たので対処法を書いておきます。

環境

macOS 10.13
VSCode 1.22.1

出たエラー

[Info  - 04:34:53] ESLint server is running.
[Info  - 04:34:54] ESLint library loaded from: /Users/mimikun/.anyenv/envs/nodenv/versions/9.11.1/lib/node_modules/eslint/lib/api.js
[Error - 04:34:55] Failed to load plugin import: Cannot find module 'eslint-plugin-import' Referenced from: /Users/mimikun/GitRepo/react_native_tutorial/the_basics/.eslintrc.yml
[Info  - 04:35:48] ESLint library loaded from: /Users/mimikun/GitRepo/react_native_tutorial/the_basics/node_modules/eslint/lib/api.js

やったこと

Failed to load plugin import: Cannot find module 'eslint-plugin-import' Referenced from:

で検索した

解決方法

yarn add eslint

これでエラーは出なくなった。

mimikun
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした