react-loadable
react-loadable copied to clipboard
Bug: "__esModule" is undefined cause React.createElement receive "obj…
…ect" not function
"webpack": "^4.6.0",
"babel-core": "^6.26.2",
"babel-eslint": "^8.2.3",
"babel-loader": "^7.1.4",
"babel-plugin-add-module-exports": "^0.2.1",
"babel-plugin-dva-hmr": "^0.4.1",
"babel-plugin-import": "^1.7.0",
"babel-plugin-syntax-dynamic-import": "^6.18.0",
"babel-plugin-transform-async-to-generator": "^6.24.1",
"babel-plugin-transform-decorators-legacy": "^1.3.4",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-preset-env": "^1.6.1",
"babel-preset-react": "^6.24.1",
"babel-preset-stage-0": "^6.24.1",
This is not an issue with react-loadable, but with webpack. They fixed it in 4.29.1
i'm facing this bug with migrate webpack to Vite. After debug . I found "__esModule" is true when use webpack5 ,but false for Vite. thus cause render error.
switch to @loadable/components solved my problem.