Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationEventAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
1
Help us understand the problem. What are the problem?

More than 3 years have passed since last update.

@mimikun

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

昨日から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

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

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
1
Help us understand the problem. What are the problem?