<?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[Problem with importing colyseus.js in the frontend.]]></title><description><![CDATA[<p>Hi, I'm not sure how to import colyseus.js in the frontend of my project. In the docs, it says to use <code>import * as Colyseus from &quot;colyseus.js&quot;;</code>, but it gives me an unexpected token * error. In addition, I'm not sure where the colyseus.js library would be coming from. Could someone explain how you are supposed to import this? Thanks!</p>
]]></description><link>http://discuss.colyseus.io/topic/214/problem-with-importing-colyseus-js-in-the-frontend</link><generator>RSS for Node</generator><lastBuildDate>Tue, 14 Apr 2026 15:52:37 GMT</lastBuildDate><atom:link href="http://discuss.colyseus.io/topic/214.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 24 Feb 2019 02:57:34 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Problem with importing colyseus.js in the frontend. on Invalid Date]]></title><description><![CDATA[<p>Hi, I'm not sure how to import colyseus.js in the frontend of my project. In the docs, it says to use <code>import * as Colyseus from &quot;colyseus.js&quot;;</code>, but it gives me an unexpected token * error. In addition, I'm not sure where the colyseus.js library would be coming from. Could someone explain how you are supposed to import this? Thanks!</p>
]]></description><link>http://discuss.colyseus.io/post/705</link><guid isPermaLink="true">http://discuss.colyseus.io/post/705</guid><dc:creator><![CDATA[mdmarshmallow]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Problem with importing colyseus.js in the frontend. on Sun, 24 Feb 2019 09:24:18 GMT]]></title><description><![CDATA[<p>Hi <a class="plugin-mentions-user plugin-mentions-a" href="http://discuss.colyseus.io/uid/375">@mdmarshmallow</a>,</p>
<p>If you're not using <code>webpack</code> to build your front-end, you can simply grab the <code>colyseus.js</code> file from here into your project: <a href="https://github.com/colyseus/colyseus.js/tree/master/dist" rel="nofollow">https://github.com/colyseus/colyseus.js/tree/master/dist</a></p>
<p>There's no need to <code>import</code> this way, since it will be available globally, example:</p>
<pre><code>var client = new Colyseus.Client(&quot;ws://localhost:2567&quot;);
</code></pre>
<p>Cheers</p>
]]></description><link>http://discuss.colyseus.io/post/706</link><guid isPermaLink="true">http://discuss.colyseus.io/post/706</guid><dc:creator><![CDATA[endel]]></dc:creator><pubDate>Sun, 24 Feb 2019 09:24:18 GMT</pubDate></item><item><title><![CDATA[Reply to Problem with importing colyseus.js in the frontend. on Invalid Date]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="http://discuss.colyseus.io/uid/1">@endel</a> Thank you, that worked for me. This is a really cool framework by the way!</p>
]]></description><link>http://discuss.colyseus.io/post/708</link><guid isPermaLink="true">http://discuss.colyseus.io/post/708</guid><dc:creator><![CDATA[mdmarshmallow]]></dc:creator><pubDate>Invalid Date</pubDate></item></channel></rss>