TypeError: Cannot read properties of null (reading ‘insertBefore’) vite build vue3之后线上报错! 项目版本 vue3 脚手架 vite@2.0.1; 描述:项目中使用的 plus 的 步骤条 + Component is 动态组件(上线后,切换组件时报错); 求大神帮忙看一下 OK继续,已解决 查看项目中是否使用链式调用之类的语法链式调用是加上可选链