error TS2307: Cannot find module 'rxjs' or its corresponding type declarations
Pre-flight checklist
- [x] I have read the contribution documentation for this project.
- [x] I agree to follow the code of conduct that this project uses.
- [x] I have searched the issue tracker for a bug that matches the one I want to file, without success.
Forge version
7.7.0
Electron version
34.2.0
Operating system
PopOS! 22.04 x64
Last known working Forge version
No response
Expected behavior
No TypeScript compilation errors
Actual behavior
node_modules/listr2/dist/index.d.ts:1:28 - error TS2307: Cannot find module 'rxjs' or its corresponding type declarations.
1 import { Observable } from 'rxjs';
~~~~~~
Steps to reproduce
Run npx tsc --noEmit on the vite + typescript template
Additional information
Solution: update listr2 to version "^8.1.0" (i.e. by changing https://github.com/electron/forge/blob/aee077fff1747a80d4a72dc081a5598c11cf928e/package.json#L63) so that this project and its users can benefit from this listr2 fix: https://github.com/listr2/listr2/commit/4eab16a21ae84fd114216931394af86ceda1576e .
Solution: update listr2 to version "^8.1.0"
Hey @hab25, thanks for the report. We're currently blocked on this until the next major version of Electron Forge because we currently support Node 16 still. I'll add this to the v8.0.0 milestone.