ysy945
ysy945
"React. CreateElement: type is invalid..." error will appear when using "vite" to package the react project The module obtained by using “import("xxx").then (module = > console.log (module))“ syntax in vite...
- [problem link](https://sfc.vuejs.org/#eNp9kN1ugzAMhV/Fyg1U4kfb7hCrNFV7i9x0YAYVcSInME2Id59T6DRtU+987OOT+FvUi3PFPKGqVO0bHlwAj2FyR02DcZYDLMDYZS12A+Fp8sGa1xENUsj6FTq2BhLZTzRpaiz5ACdrHDzDPxvpogmAzgYrraJNqyx2GKlFTg/XcZRhYoI+1aodZvHQNI7Zw+PTIc5XTasUzc9gX2yvpYn5zBsJTrIYL7a63K6Se0QENG48BxQFUO/eY13eqtiOO98+lakNQ27Orrh4SwLq+k29D7xWFewf10pIRK1VH4LzVVn6rol4L76w/F5KVfBEYTBYoDf5G9sPjyzBO4k9o5TmjJxvYJDvZf6y/sm9MVPrF2LLrBw=) - when I use customElements it's ok. but after changing file will trigger hmr.,it will be rerun `window.customElements.define`. so there is an error will be caused. ...