theKashey / use-sidecar

Another way to code splitting
MIT License
106 stars 10 forks source link

Error: "Sidecar medium not found" #2

Open letterix opened 5 years ago

letterix commented 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.

theKashey commented 5 years ago

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.