Skip to content

error TS2307: Cannot find module 'rxjs' or its corresponding type declarations #3878

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

Open
3 tasks done
hab25 opened this issue Mar 11, 2025 · 1 comment
Open
3 tasks done
Labels
dependencies Pull requests that update a dependency file typescript Issues relating to use of TypeScript with Forge
Milestone

Comments

@hab25
Copy link

hab25 commented Mar 11, 2025

Pre-flight checklist

  • I have read the contribution documentation for this project.
  • I agree to follow the code of conduct that this project uses.
  • 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

"listr2": "^7.0.2",
) so that this project and its users can benefit from this listr2 fix: listr2/listr2@4eab16a .

@erickzhao
Copy link
Member

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.

@erickzhao erickzhao added dependencies Pull requests that update a dependency file typescript Issues relating to use of TypeScript with Forge labels Mar 12, 2025
@erickzhao erickzhao added this to the 8.0.0 milestone Mar 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file typescript Issues relating to use of TypeScript with Forge
Projects
None yet
Development

No branches or pull requests

2 participants