Skip to content

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

Open
@hab25

Description

@hab25

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 .

Metadata

Metadata

Assignees

No one assigned

    Labels

    dependenciesPull requests that update a dependency filetypescriptIssues relating to use of TypeScript with Forge

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions