<?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[ERROR: Cannot find module - customLogic is not being found but it is in the lib (Solved)]]></title><description><![CDATA[<p><img src="/assets/uploads/files/1660360660169-colyseuserror1-resized.png" alt="0_1660360659316_ColyseusError1.png" class="img-responsive img-markdown" /></p>
<p>I have deployed to the server on arena, my WebGl game can connect to the server and starts to initialize the game, but in order to start the game, it has to fetch the custom logic in another folder labeled custom logic. My localhost tests worked but for some reason it doesn't work here.</p>
<p>I have a feeling it is about the relative and absolute paths as the documentation mentioned something about it but I don't know where to start or what to change to fix this. I have restarted and re-uploaded the lib folder. Please help! I don't wanna wreck my code to fix this. It seems like I'm just missing some small thing as per usual.</p>
<p>I am using Colyseus 0.14.18 and Node 16.15.</p>
]]></description><link>http://discuss.colyseus.io/topic/711/error-cannot-find-module-customlogic-is-not-being-found-but-it-is-in-the-lib-solved</link><generator>RSS for Node</generator><lastBuildDate>Mon, 20 Apr 2026 13:00:59 GMT</lastBuildDate><atom:link href="http://discuss.colyseus.io/topic/711.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 13 Aug 2022 03:23:38 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to ERROR: Cannot find module - customLogic is not being found but it is in the lib (Solved) on Sun, 14 Aug 2022 10:04:04 GMT]]></title><description><![CDATA[<p><img src="/assets/uploads/files/1660360660169-colyseuserror1-resized.png" alt="0_1660360659316_ColyseusError1.png" class="img-responsive img-markdown" /></p>
<p>I have deployed to the server on arena, my WebGl game can connect to the server and starts to initialize the game, but in order to start the game, it has to fetch the custom logic in another folder labeled custom logic. My localhost tests worked but for some reason it doesn't work here.</p>
<p>I have a feeling it is about the relative and absolute paths as the documentation mentioned something about it but I don't know where to start or what to change to fix this. I have restarted and re-uploaded the lib folder. Please help! I don't wanna wreck my code to fix this. It seems like I'm just missing some small thing as per usual.</p>
<p>I am using Colyseus 0.14.18 and Node 16.15.</p>
]]></description><link>http://discuss.colyseus.io/post/2035</link><guid isPermaLink="true">http://discuss.colyseus.io/post/2035</guid><dc:creator><![CDATA[gurulantern]]></dc:creator><pubDate>Sun, 14 Aug 2022 10:04:04 GMT</pubDate></item><item><title><![CDATA[Reply to ERROR: Cannot find module - customLogic is not being found but it is in the lib (Solved) on Invalid Date]]></title><description><![CDATA[<p>Thank you for getting back to me! These are my dependencies for server code:</p>
<p>&quot;devDependencies&quot;: {<br />
&quot;@colyseus/loadtest&quot;: &quot;^0.14.4&quot;,<br />
&quot;@colyseus/testing&quot;: &quot;^0.14.21&quot;,<br />
&quot;@types/cors&quot;: &quot;^2.8.6&quot;,<br />
&quot;@types/express&quot;: &quot;^4.17.1&quot;,<br />
&quot;@types/mocha&quot;: &quot;^8.2.3&quot;,<br />
&quot;copyfiles&quot;: &quot;^2.4.1&quot;,<br />
&quot;mocha&quot;: &quot;^9.0.2&quot;,<br />
&quot;rimraf&quot;: &quot;^2.7.1&quot;,<br />
&quot;ts-node&quot;: &quot;^8.1.0&quot;,<br />
&quot;ts-node-dev&quot;: &quot;^1.0.0-pre.63&quot;,<br />
&quot;typescript&quot;: &quot;^3.4.5&quot;<br />
},<br />
&quot;dependencies&quot;: {<br />
&quot;@colyseus/arena&quot;: &quot;^0.14.22&quot;,<br />
&quot;@colyseus/monitor&quot;: &quot;^0.14.20&quot;,<br />
&quot;colyseus&quot;: &quot;^0.14.20&quot;,<br />
&quot;cors&quot;: &quot;^2.8.5&quot;,<br />
&quot;express&quot;: &quot;^4.16.4&quot;,<br />
&quot;winston&quot;: &quot;^3.3.3&quot;<br />
}</p>
<p>Are those what you're looking for?</p>
]]></description><link>http://discuss.colyseus.io/post/2037</link><guid isPermaLink="true">http://discuss.colyseus.io/post/2037</guid><dc:creator><![CDATA[gurulantern]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to ERROR: Cannot find module - customLogic is not being found but it is in the lib (Solved) on Invalid Date]]></title><description><![CDATA[<p>You're using a custom module named &quot;customLogic&quot; right?<br />
You should set its path in package.json file.</p>
]]></description><link>http://discuss.colyseus.io/post/2038</link><guid isPermaLink="true">http://discuss.colyseus.io/post/2038</guid><dc:creator><![CDATA[COCO]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to ERROR: Cannot find module - customLogic is not being found but it is in the lib (Solved) on Invalid Date]]></title><description><![CDATA[<p>Relative &amp; Absolute Folder Locations¶<br />
It is important to note that this json file is located at the root directory of your Arena Cloud server and not the root directory of your server code. If you are referencing a custom module from your package.json you will need to put its relative path based of the Arena Cloud server root.</p>
<p>The relative path of your uploaded server code is ./app/server/arena/.</p>
<p>The absolute path of your uploaded server code is ./colyseus/app/server/arena/</p>
]]></description><link>http://discuss.colyseus.io/post/2039</link><guid isPermaLink="true">http://discuss.colyseus.io/post/2039</guid><dc:creator><![CDATA[COCO]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to ERROR: Cannot find module - customLogic is not being found but it is in the lib (Solved) on Invalid Date]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="http://discuss.colyseus.io/uid/873">@coco</a></p>
<p>Oh I see. I am using similar server code to the StarBoss Demo where it uses &quot;competitive&quot; and &quot;collaborative&quot; strings to decide game modes. I looked in their package.json and they don't have the paths for the &quot;competitive&quot; or &quot;collaborative&quot; logic listed. The logic I'm trying to access is in a custom Logic folder in the rooms folder.</p>
<p>I'll give it a shot though and list it in the package.json.</p>
]]></description><link>http://discuss.colyseus.io/post/2040</link><guid isPermaLink="true">http://discuss.colyseus.io/post/2040</guid><dc:creator><![CDATA[gurulantern]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to ERROR: Cannot find module - customLogic is not being found but it is in the lib (Solved) on Invalid Date]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="http://discuss.colyseus.io/uid/873">@coco</a></p>
<p>I found the issue! It was a typo. Thank you so much for your help Coco. Talking it out helps me figure out where to look. Your responses are super appreciated.</p>
]]></description><link>http://discuss.colyseus.io/post/2041</link><guid isPermaLink="true">http://discuss.colyseus.io/post/2041</guid><dc:creator><![CDATA[gurulantern]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to ERROR: Cannot find module - customLogic is not being found but it is in the lib (Solved) on Invalid Date]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="http://discuss.colyseus.io/uid/1780">@gurulantern</a></p>
<p>Glad your problem was solved.</p>
]]></description><link>http://discuss.colyseus.io/post/2044</link><guid isPermaLink="true">http://discuss.colyseus.io/post/2044</guid><dc:creator><![CDATA[COCO]]></dc:creator><pubDate>Invalid Date</pubDate></item></channel></rss>