eslint-plugin-lingui tried to access typescript error
- Dominant language
- TypeScript
- Stars
- 33
- Forks
- 25
- Avg merge
- 1d 16h
- Merged PRs (30d)
- 9
Description
**Describe the bug**
After upgrading eslint-plugin-lingui from 0.8.1 to 0.9.0 I get the following error:
```
ESLint: 8.57.1
Error: Failed to load plugin 'lingui' declared in '.eslintrc.json': eslint-plugin-lingui tried to access typescript, but it isn't declared in its dependencies; this makes the require call ambiguous and unsound.
Required package: typescript
Required by: eslint-plugin-lingui@virtual:852b4441a6a75c926a70d0844547c3df7516293a0007e3a7[15]
```
**Expected behavior**
No error
**Additional context**
React 17
Yarn PNP
Vite JS
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the reported failure with ESLint 8.57.1, Yarn PnP, React 17, and Vite JS after upgrading eslint-plugin-lingui from 0.8.1 to 0.9.0. Inspect the plugin's dependency declarations and verify that the ESLint plugin loads without the missing-typescript error under Yarn PnP.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- eslint, typescript
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100