【问题标题】:MUI Lab Not Exporting AdapterDateFnsMUI 实验室未导出 AdapterDateFns
【发布时间】:2022-01-08 05:38:07
【问题描述】:
/** @license MUI v5.0.0-alpha.63
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */
/* eslint-disable import/export */
export { default as Alert } from './Alert';
export * from './Alert';
export { default as AlertTitle } from './AlertTitle';
export * from './AlertTitle';
export { default as Autocomplete } from './Autocomplete';
export * from './Autocomplete';
export { default as AvatarGroup } from './AvatarGroup';
export * from './AvatarGroup';
export { default as CalendarPicker } from './CalendarPicker';
export * from './CalendarPicker';
export { default as ClockPicker } from './ClockPicker';
export * from './ClockPicker';
export { default as DatePicker } from './DatePicker';
export * from './DatePicker';
export { default as DateRangePicker } from './DateRangePicker';
export * from './DateRangePicker';
...

它根本没有从 node_modules 的 index.js 导出 > @mui >lab > index.js 该目录在 index.js 中带有 export { default } from '@date-io/date-fns';

我正在运行版本 "@mui/lab": "^5.0.0-alpha.63","@mui/material": "^5.0.0-alpha.24",

【问题讨论】:

标签: material-ui


【解决方案1】:

我在这里找到了出口:

import AdapterDateFns from "@mui/lab/modern/AdapterDateFns";

【讨论】:

    猜你喜欢
    • 2021-11-26
    • 2020-09-09
    • 2021-05-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-12-28
    • 2019-01-19
    相关资源
    最近更新 更多