Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: install typescript in eslint recipe #97

Merged
merged 1 commit into from
Sep 11, 2024

Conversation

km1chno
Copy link
Collaborator

@km1chno km1chno commented Sep 11, 2024

Fixes the following error when running eslint:

ESLint: 8.57.0

Error: Failed to load parser '@typescript-eslint/parser' declared in '.eslintrc.json » @react-native/eslint-config#overrides[2]': Cannot find module 'typescript'
Require stack:
- /home/runner/work/rn-setup-ci-yarn-flat/rn-setup-ci-yarn-flat/node_modules/@typescript-eslint/typescript-estree/dist/convert.js
- /home/runner/work/rn-setup-ci-yarn-flat/rn-setup-ci-yarn-flat/node_modules/@typescript-eslint/typescript-estree/dist/ast-converter.js
- /home/runner/work/rn-setup-ci-yarn-flat/rn-setup-ci-yarn-flat/node_modules/@typescript-eslint/typescript-estree/dist/parser.js
- /home/runner/work/rn-setup-ci-yarn-flat/rn-setup-ci-yarn-flat/node_modules/@typescript-eslint/typescript-estree/dist/index.js
- /home/runner/work/rn-setup-ci-yarn-flat/rn-setup-ci-yarn-flat/node_modules/@typescript-eslint/parser/dist/parser.js
- /home/runner/work/rn-setup-ci-yarn-flat/rn-setup-ci-yarn-flat/node_modules/@typescript-eslint/parser/dist/index.js
- /home/runner/work/rn-setup-ci-yarn-flat/rn-setup-ci-yarn-flat/node_modules/@eslint/eslintrc/dist/eslintrc.cjs
    at Module._resolveFilename (node:internal/modules/cjs/loader:1225:15)
    at Module._load (node:internal/modules/cjs/loader:1051:27)
    at Module.require (node:internal/modules/cjs/loader:1311:19)
    at require (node:internal/modules/helpers:179:18)
    at Object.<anonymous> (/home/runner/work/rn-setup-ci-yarn-flat/rn-setup-ci-yarn-flat/node_modules/@typescript-eslint/typescript-estree/dist/convert.js:36:25)
    at Module._compile (node:internal/modules/cjs/loader:1469:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1548:10)
    at Module.load (node:internal/modules/cjs/loader:1288:32)
    at Module._load (node:internal/modules/cjs/loader:1104:12)
    at Module.require (node:internal/modules/cjs/loader:1311:19)
Error: Process completed with exit code 2.

@km1chno km1chno self-assigned this Sep 11, 2024
@km1chno km1chno merged commit 8214e49 into main Sep 11, 2024
3 checks passed
@km1chno km1chno deleted the @km1chno/fix-install-typescript-in-eslint-recipe branch September 11, 2024 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants