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

Attempted import error: 'PropTypes' is not exported from victory-core #2874

Closed
2 tasks done
randhir-nitk opened this issue May 27, 2024 · 1 comment
Closed
2 tasks done
Labels
Type: Question ❔ Asking a question or asking for help

Comments

@randhir-nitk
Copy link

randhir-nitk commented May 27, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Code of Conduct

  • I agree to follow this project's Code of Conduct

Question

I deleted the yarn.lock file and ran yarn again. After this, I started getting an error when running
yarn start in my React project. The error message is: 'Attempted import error: 'PropTypes' is not
exported from victory-core.' This error does not occur when yarn.lock specifies victory-core version ^36.5.0,
but it appears when victory-core ^36.9.2 is installed.
@randhir-nitk randhir-nitk added the Type: Question ❔ Asking a question or asking for help label May 27, 2024
@carbonrobot
Copy link
Contributor

Thanks for the issue @randhir-nitk. PropTypes has been completely removed in the latest versions of Victory and we now have full Typescript support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Question ❔ Asking a question or asking for help
Projects
None yet
Development

No branches or pull requests

2 participants