react-hook-form: TypeError: Incompatible receiver, Set required

Describe the bug Starting from version 6.3.1 until the current version 6.3.3 I’m not able to use RHF in production. I use parcel-bundler to compile my project and when I start it it’ll throw with the message TypeError: Incompatible receiver, Set required. It throws from the line https://github.com/react-hook-form/react-hook-form/blob/752d7efce18d6b2e26cbec7c9a1c24aa1ae5eb56/src/useForm.ts#L95

To Reproduce Reproduction is real hard since I don’t know what differs from the development runtime where it works as expected. But I use this alias to support IE11 out of the box:

  "alias": {
    "react-hook-form": "react-hook-form/dist/index.ie11.production.min.js"
  },

Desktop (please complete the following information):

  • OS: Windows 10 Version 10.0.20185 Build 20185
  • Browser: Chromium Edge Version 86.0.605.0

Additional context Quick google says maybe this helps https://github.com/zloirock/core-js/issues/514#issuecomment-561118374

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 16 (16 by maintainers)

Most upvoted comments

thanks very much @kotarella1110 🙏 and @krnlde’s testing.

@krnlde @bluebill1049 I wil investigate this.

Quick A/B test reveals 6.5.2-beta.1 works and 6.5.1 as expected doesn’t. Great job man and thank you. This day next year IE will be history 😃

❤️

Yes will do now