【发布时间】:2021-01-18 16:53:14
【问题描述】:
我收到以下错误:Attempted import error: 'MyPropertiesForm' is not exported from '../../forms'.,我不知道为什么,因为一切都是正确的。
这是我如何导入import { MyPropertiesForm } from '../../forms';
// 这个文件在 E:\falala\src\containers\MyPropertiesPage\MyPropertiesPage.js
这是我的导出方式
const MyPropertiesForm = compose(injectIntl)(MyPropertiesFormComponent);
MyPropertiesForm.displayName = 'ContactDetailsForm';
export default MyPropertiesForm;
//这个文件在 E:\falala\src\forms\MyPropertiesForm\MyPropertiesForm.js
【问题讨论】:
标签: javascript reactjs import export