/var/www/bitrix/public/bitrix/cache/cache_pug/dd2a5d2a845f6817f8fb8b9dc7d5e73b/index.js:10 function pug_rethrow(n,e,r,t){if(!(n instanceof Error))throw n;if(!("undefined"==typeof window&&e||t))throw n.message+=" on line "+r,n;try{t=t||require("fs").readFileSync(e,"utf8")}catch(e){pug_rethrow(n,null,r)}var i=3,a=t.split("\n"),o=Math.max(r-i,0),h=Math.min(a.length,r+i),i=a.slice(o,h).map(function(n,e){var t=e+o+1;return(t==r?" > ":" ")+t+"| "+n}).join("\n");throw n.path=e,n.message=(e||"Pug")+":"+r+"\n"+i+"\n\n"+n.message,n} ^ TypeError: /var/www/bitrix/public/local/markup/frontend/src/markup/component/stockLayout/stockLayout.pug:25 23| section.stock-layoyt__main 24| .stocks-layout__items > 25| each item in stocksItems 26| +stockItem({item}) 27| if pagination 28| +pagination({showMore:false,pagination}) Cannot read property 'length' of null at Object. (/var/www/bitrix/public/bitrix/cache/cache_pug/dd2a5d2a845f6817f8fb8b9dc7d5e73b/index.js:7017:32) at Object.pug_interp [as stockLayout] (/var/www/bitrix/public/bitrix/cache/cache_pug/dd2a5d2a845f6817f8fb8b9dc7d5e73b/index.js:7032:4) at /var/www/bitrix/public/bitrix/cache/cache_pug/dd2a5d2a845f6817f8fb8b9dc7d5e73b/index.js:7050:26 at template (/var/www/bitrix/public/bitrix/cache/cache_pug/dd2a5d2a845f6817f8fb8b9dc7d5e73b/index.js:7062:179) at Object. (/var/www/bitrix/public/bitrix/cache/cache_pug/dd2a5d2a845f6817f8fb8b9dc7d5e73b/render.1638064277786764041.js:1:120) at Module._compile (internal/modules/cjs/loader.js:1085:14) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10) at Module.load (internal/modules/cjs/loader.js:950:32) at Function.Module._load (internal/modules/cjs/loader.js:790:12) at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12) { path: '/var/www/bitrix/public/local/markup/frontend/src/markup/component/stockLayout/stockLayout.pug' }