react-hook-form: Bug report: Cannot resolve dependency 'ts-polyfill/es2015-symbol' since v4.9.4
Describe the bug
After updating to 4.9.4 I immediatelly get this error on console:
Γ [project_root]\node_modules\react-hook-form\dist\react-hook-form.ie11.js:7:8: Cannot resolve dependency 'ts-polyfill/es2015-symbol'
5 | require('ts-polyfill');
6 | require('ts-polyfill/es2015-iterable');
> 7 | require('ts-polyfill/es2015-symbol');
| ^
8 | require('ts-polyfill/es2015-symbol-wellknown');
9 | var React = require('react');
10 |
Additional context In my project I use the ie11 version of react-hook-form. This issue is probably related to the latest PR #1018
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 1
- Comments: 15 (13 by maintainers)
I agree too π
hey @kotarella1110 we will not ship the lib with ts-polyfill bundle, i think we are better leave those to explain in the documentation. I will revert the commit tonight if i donβt hear from @vova-bezhenar
@bluebill1049 I agree with you π
I think the following lines need to be fixed.
https://github.com/react-hook-form/react-hook-form/blob/master/src/index.ie11.ts#L1-L4
Also, we need to install
ts-polyfillto use ie11 version ofreact-hook-form. If we want to bundle withts-polyfill, we should remove it fromexternalin rollup config.https://github.com/react-hook-form/react-hook-form/blob/master/rollup.ie11.config.js#L14