diff --git a/packages/core/src/components/DatePicker/DatePicker.tsx b/packages/core/src/components/DatePicker/DatePicker.tsx index 37161dc57b..1b22d2e33d 100644 --- a/packages/core/src/components/DatePicker/DatePicker.tsx +++ b/packages/core/src/components/DatePicker/DatePicker.tsx @@ -1,7 +1,7 @@ import React, { forwardRef, useCallback, useState } from "react"; import cx from "classnames"; import moment from "moment"; -import "react-dates/initialize"; +import "react-dates/initialize.js"; import { DayOfWeekShape, DayPickerRangeController, DayPickerSingleDateController } from "react-dates"; import DatePickerHeaderComponent from "./DatePickerHeader/DatePickerHeader"; import DateNavigationItem from "./DateNavigationItem/DateNavigationItem"; diff --git a/packages/core/src/components/Dropdown/Dropdown.tsx b/packages/core/src/components/Dropdown/Dropdown.tsx index 126bf4d828..6940adca15 100644 --- a/packages/core/src/components/Dropdown/Dropdown.tsx +++ b/packages/core/src/components/Dropdown/Dropdown.tsx @@ -3,7 +3,8 @@ import cx from "classnames"; import { BaseSizes, SIZES_VALUES } from "../../constants"; import React, { forwardRef, useCallback, useMemo, useRef, useState } from "react"; import Select, { InputProps, components, createFilter, ActionMeta } from "react-select"; -import AsyncSelect from "react-select/async"; +// @ts-ignore +import AsyncSelect from "react-select/async/dist/react-select.esm.js"; import { noop as NOOP } from "lodash-es"; import { WindowedMenuList } from "react-windowed-select"; import MenuComponent from "./components/menu/menu";