<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[&quot;TypeError: Cannot read property &#x27;forEach&#x27; of undefined&quot; if new PathFinder enabled]]></title><description><![CDATA[<p>After enabling new PathFinder sometimes a strange error displayed in console:</p>
<p>```</p>
<p>[4:05:22 PM]TypeError: Cannot read property 'forEach' of undefined</p>
<p>```</p>
<p>I can't localize exact part of code where it happens because it's only one string in console, but it occurs while first creeps start moving (in most cases by creep.moveTo(...)).</p>
<p>Has someone noticed this error into their scripts?</p>]]></description><link>http://screeps.com/forum/topic/1101/typeerror-cannot-read-property-foreach-of-undefined-if-new-pathfinder-enabled</link><generator>RSS for Node</generator><lastBuildDate>Sun, 19 Apr 2026 08:35:48 GMT</lastBuildDate><atom:link href="http://screeps.com/forum/topic/1101.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 13 Apr 2016 13:20:20 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to &quot;TypeError: Cannot read property &#x27;forEach&#x27; of undefined&quot; if new PathFinder enabled on Invalid Date]]></title><description><![CDATA[<p>After enabling new PathFinder sometimes a strange error displayed in console:</p>
<p>```</p>
<p>[4:05:22 PM]TypeError: Cannot read property 'forEach' of undefined</p>
<p>```</p>
<p>I can't localize exact part of code where it happens because it's only one string in console, but it occurs while first creeps start moving (in most cases by creep.moveTo(...)).</p>
<p>Has someone noticed this error into their scripts?</p>]]></description><link>http://screeps.com/forum/post/5175</link><guid isPermaLink="true">http://screeps.com/forum/post/5175</guid><dc:creator><![CDATA[Mototroller]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to &quot;TypeError: Cannot read property &#x27;forEach&#x27; of undefined&quot; if new PathFinder enabled on Invalid Date]]></title><description><![CDATA[<p>This has been going on for forever and it seems to occur randomly. Would love for it to be fixed.</p>]]></description><link>http://screeps.com/forum/post/5176</link><guid isPermaLink="true">http://screeps.com/forum/post/5176</guid><dc:creator><![CDATA[Hernanduer]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to &quot;TypeError: Cannot read property &#x27;forEach&#x27; of undefined&quot; if new PathFinder enabled on Invalid Date]]></title><description><![CDATA[<p>It is hard to say something without knowing the exact method which throws this error.</p>]]></description><link>http://screeps.com/forum/post/5177</link><guid isPermaLink="true">http://screeps.com/forum/post/5177</guid><dc:creator><![CDATA[artch]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to &quot;TypeError: Cannot read property &#x27;forEach&#x27; of undefined&quot; if new PathFinder enabled on Invalid Date]]></title><description><![CDATA[<p>I've caught the exact stacktrace with "try-catch" around some huge parts of code:</p>
<p>TRYCATCH: {} TypeError: Cannot read property 'forEach' of undefined TypeError: Cannot read property 'forEach' of undefined<br> at makePathfindingGrid2 (/opt/engine/dist/game/rooms.js:170:35)<br> at getPathfindingGrid2 (/opt/engine/dist/game/rooms.js:210:81)<br> at searchOpts.roomCallback (/opt/engine/dist/game/rooms.js:229:30)<br> at /opt/engine/dist/core/path-finder.js:116:31<br> at Object.exports.search (/opt/engine/dist/core/path-finder.js:128:19)<br> at Object.globals.PathFinder.search (/opt</p>]]></description><link>http://screeps.com/forum/post/5178</link><guid isPermaLink="true">http://screeps.com/forum/post/5178</guid><dc:creator><![CDATA[Mototroller]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to &quot;TypeError: Cannot read property &#x27;forEach&#x27; of undefined&quot; if new PathFinder enabled on Invalid Date]]></title><description><![CDATA[<p>Thanks, fixed.</p>]]></description><link>http://screeps.com/forum/post/5179</link><guid isPermaLink="true">http://screeps.com/forum/post/5179</guid><dc:creator><![CDATA[artch]]></dc:creator><pubDate>Invalid Date</pubDate></item></channel></rss>