Open letterix opened 5 years ago
Trying to use the "react-focus-on" module in our project, works when compiling locally but not when creating a production build.
{!calendarHidden && ( <FocusOn onClickOutside={() => handleCalendarToggle(true)} onEscapeKey={() =>handleCalendarToggle(true)}> <CalendarDropDown hidden={calendarHidden} month={month} date={date} onNext={() => setMonth(addMonths(month, 1))} onPrevious={() => setMonth(subMonths(month, 1))} onSelectDate={handleDate}/> </FocusOn> )}
The error i'm getting is: Error: "Sidecar medium not found"
Any idea? Im supposing its something when compiling with Babel.
See https://github.com/theKashey/react-focus-on/issues/9, fixed two days ago.
That's was an unexpected issue with tree shaking, please bump focus-on, or to be more concrete - react-remove-focus.
focus-on
react-remove-focus
Trying to use the "react-focus-on" module in our project, works when compiling locally but not when creating a production build.
The error i'm getting is: Error: "Sidecar medium not found"
Any idea? Im supposing its something when compiling with Babel.