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

4.0.11 cannot find module 'react-error-boundary' or its corresponding type declarations. #167

Closed
jlmn1026 opened this issue Sep 9, 2023 · 1 comment

Comments

@jlmn1026
Copy link

jlmn1026 commented Sep 9, 2023

  • react-error-boundary version: 4.0.11
  • node version: 20
  • pnpm version: 8.7.4

Relevant code or config

import * as React from 'react';
import { ErrorBoundary } from 'react-error-boundary';

What you did:
I imported ErrorBoundary from react-error-boundary.

What happened:
below error happenned.

cannot find module 'react-error-boundary' or its corresponding type declarations. 

Reproduction repository:

Problem description:

When I downgraded to 3.1.4, this error resolved.

Suggested solution:

@bvaughn
Copy link
Owner

bvaughn commented Sep 10, 2023

I think this sounds like an issue with your TS config.

Just to double check, here's a new project with v4.0.11 and it seems fine
https://codesandbox.io/s/sweet-lovelace-zjypk5

@bvaughn bvaughn closed this as completed Sep 10, 2023
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

No branches or pull requests

2 participants