react-loadable icon indicating copy to clipboard operation
react-loadable copied to clipboard

Bug: "__esModule" is undefined cause React.createElement receive "obj…

Open BleemIs42 opened this issue 7 years ago • 2 comments

…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",

BleemIs42 avatar Sep 12 '18 09:09 BleemIs42

This is not an issue with react-loadable, but with webpack. They fixed it in 4.29.1

maneeshpal avatar Mar 07 '19 20:03 maneeshpal

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.

shenjo avatar Jul 11 '22 10:07 shenjo