TypeError: /app/web/www.squareyards.ae/frontend/public_html/dist/src/views/project/project.ejs:1223
1221| <% } %>
1222|
>> 1223| <% if(nearByLocalities.localitiesData && nearByLocalities.localitiesData.length > 0){ %>
1224| <div class="areaguide-sec">
1225| <%- include('../home/partials/areaguide_home', {homeData:nearByLocalities, selcityname:project.city, localityName:project.subLocation, pageType: 'project-detail'}) %>
1226| </div>
Cannot read property 'localitiesData' of undefined
at eval (eval at compile (/app/web/www.squareyards.ae/frontend/public_html/dist/node_modules/ejs/lib/ejs.js:618:12), <anonymous>:1834:28)
at returnedFn (/app/web/www.squareyards.ae/frontend/public_html/dist/node_modules/ejs/lib/ejs.js:653:17)
at tryHandleCache (/app/web/www.squareyards.ae/frontend/public_html/dist/node_modules/ejs/lib/ejs.js:251:36)
at View.exports.renderFile [as engine] (/app/web/www.squareyards.ae/frontend/public_html/dist/node_modules/ejs/lib/ejs.js:482:10)
at View.render (/app/web/www.squareyards.ae/frontend/public_html/dist/node_modules/express/lib/view.js:135:8)
at tryRender (/app/web/www.squareyards.ae/frontend/public_html/dist/node_modules/express/lib/application.js:640:10)
at Function.render (/app/web/www.squareyards.ae/frontend/public_html/dist/node_modules/express/lib/application.js:592:3)
at ServerResponse.render (/app/web/www.squareyards.ae/frontend/public_html/dist/node_modules/express/lib/response.js:1008:7)
at ServerResponse.res.render (/app/web/www.squareyards.ae/frontend/public_html/dist/node_modules/express-ejs-layouts/lib/express-layouts.js:77:18)
at getProjectPage (/app/web/www.squareyards.ae/frontend/public_html/dist/src/project/project.js:984:17)