提示Cannot read properties of undefined (reading 'collection')是哪里配置不对

按钮页面需要列出collections里的表时提示Cannot read properties of undefined (reading ‘collection’),是什么原因