theKashey/use-sidecar

Error: "Sidecar medium not found"

Opened this issue · 1 comments

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 theKashey/react-focus-on#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.