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

fix(yup): fix Yup wrong import statement assuming default export #427

Merged
merged 1 commit into from
Jul 15, 2022

Conversation

Grsmto
Copy link
Contributor

@Grsmto Grsmto commented Jul 13, 2022

Hi,

Yup was imported with a default import but in the original library no default export is defined. This is only working at the moment when building the lib because of the tsconfig option esModuleInterop.

I believe this is causing an issue only in specific scenarios (I had the issue while using a Webpack 4 setup with an older ts-loader version) but since it's a tiny change, might be reasonable to fix.

This is the error you could eventually see and this PR resolve:
TS1192: Module '"/node_modules/@hookform/resolvers/yup/src/yup"' has no default export.

Copy link
Member

@jorisre jorisre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch ! thank you :)

@jorisre jorisre merged commit 928afae into react-hook-form:master Jul 15, 2022
@github-actions
Copy link
Contributor

🎉 This PR is included in version 2.9.6 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants