3.8.7 自定义渲染管线,编辑器正常,运行报错

根据文档设置渲染管线为Custom


https://docs.cocos.com/creator/3.8/manual/zh/render-pipeline/custom-pipeline.html

编辑器正常,可是运行的时候提示,报错:
framework.ts:72 Uncaught TypeError: Cannot read properties of undefined (reading ‘windowResize’)
at Module.dispatchResizeEvents (framework.ts:72:18)
at Director.buildRenderPipeline (director.ts:826:28)
at WebPipeline.beginFrame (web-pipeline.ts:1595:18)

跟进去源码发现是 builder 为空

请问下该如何解决呢?