btholt / btholt/complete-intro-to-react-v9

"@eslint/js" doesn't get installed with the command in webpage.

Open Beginner friendly
#20 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
770
Forks
101
PR merge metrics
No merged PRs in 30d

Description

Hello there!
I bought a subscription to Frontend Masters and following both the video lecture and the webpage. However I came across an error with ESLint and VSCode.

```
D:\CodeProjects\react\project> pnpm run lint
>project@1.0.0 lint D:\CodeProjects\react\project
>eslint
Oops! Something went wrong! :(
ESLint: 9.9.1
Error [ERR_MODULE_NOT_FOUND]: Cannot find package '@eslint/js' imported from D:\CodeProjects\react\project\eslint.config.mjs
Did you mean to import "@eslint/js/src/index.js"?
at Object.getPackageJSONURL (node:internal/modules/package_json_reader:301:9)
at packageResolve (node:internal/modules/esm/resolve:764:81)
at moduleResolve (node:internal/modules/esm/resolve:855:18)
at defaultResolve (node:internal/modules/esm/resolve:988:11)
at #cachedDefaultResolve (node:internal/modules/esm/loader:697:20)
at #resolveAndMaybeBlockOnLoaderThread (node:internal/modules/esm/loader:714:38)
at ModuleLoader.resolveSync (node:internal/modules/esm/loader:746:52)
at #resolve (node:internal/modules/esm/loader:679:17)
at ModuleLoader.getOrCreateModuleJob (node:internal/modules/esm/loader:599:35)
at ModuleJob.syncLink (node:internal/modules/esm/module_job:162:33)
 ELIFECYCLE  Command failed with exit code 2.
```

Adding into the commands at tutorial webpage (https://react-v9.holt.courses/lessons/tools/linting), I also had to run `pnpm i -D @eslint/js@9.9.1`. Is it a pnpm specific issue?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the linting lesson at https://react-v9.holt.courses/lessons/tools/linting and follow its documented install commands. Run `pnpm run lint` and compare the result with the missing `@eslint/js` import reported from `eslint.config.mjs`. Done means the lesson's commands or instructions reliably provide the dependency needed for linting.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.