error.code

Cannot read properties of undefined (reading 'items')