TypeError: __webpack_require__.i(…) is not a function
问题 I am getting a webpack TypeError when I am trying to simplify an import. The following code works without any issues. Here I am importing a React Higher-Order-Component (HOC) called smartForm from core/components/form/index.js . core/components/form/index.js (does a named export of smartForm ) export smartForm from './smart-form'; login-form.jsx (imports and uses smartForm ) import { smartForm } from 'core/components/form'; class LoginForm extends React.Component { ... } export default