我正在尝试将我的组件导入单个文件以供以后使用,我的文件夹结构是
-Components
-Forms
- Checkbox
-index.js
- Input
-index.js
- index.js
我正在尝试从 Form/index.js 文件中导入和导出它们
export { Checkbox } from 'components/Forms/Checkbox'
export { Input } from 'components/Forms/Input'
并导入另一个页面组件
import { Input, Checkbox } from 'components/Forms'
但是我得到了 Attempted import error: 'Input' is not exported from 'components/Forms/Input'
组件文件有这样的导出export default Input