<?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 colyseus.js and webpack]]></title><description><![CDATA[<p>Hello,<br />
I'm new with node.js and Colyseus and I'm a little bit confused with configuration files, npm packages, etc.<br />
I've developed a game using Colyseus. Initially I wrote it in Javascript, and is running ok. After that I migrated code to Typescript and used Wepback in client side. I installed Colyseus.js with <strong>npm install --save colyseus.js</strong>, and when try to import in my code with <strong>import * as Colyseus from &quot;colyseus.js&quot;</strong> VS code complaints with &quot;Cannot find module 'colyseus.js' or its corresponding type declarations.&quot; Same error when I try compile with webpack.<br />
My client side programs are in a subfolder of the main project folder. Have I to configure webpack or tsconfig in any special way? Do I need a package.json in my client subfolder? Or the problem is in other side I cannot see...<br />
Thanks in advance.</p>
]]></description><link>http://discuss.colyseus.io/topic/386/problem-with-colyseus-js-and-webpack</link><generator>RSS for Node</generator><lastBuildDate>Tue, 18 Aug 2026 08:27:43 GMT</lastBuildDate><atom:link href="http://discuss.colyseus.io/topic/386.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 15 Jun 2020 22:04:04 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Problem with colyseus.js and webpack on Invalid Date]]></title><description><![CDATA[<p>Hello,<br />
I'm new with node.js and Colyseus and I'm a little bit confused with configuration files, npm packages, etc.<br />
I've developed a game using Colyseus. Initially I wrote it in Javascript, and is running ok. After that I migrated code to Typescript and used Wepback in client side. I installed Colyseus.js with <strong>npm install --save colyseus.js</strong>, and when try to import in my code with <strong>import * as Colyseus from &quot;colyseus.js&quot;</strong> VS code complaints with &quot;Cannot find module 'colyseus.js' or its corresponding type declarations.&quot; Same error when I try compile with webpack.<br />
My client side programs are in a subfolder of the main project folder. Have I to configure webpack or tsconfig in any special way? Do I need a package.json in my client subfolder? Or the problem is in other side I cannot see...<br />
Thanks in advance.</p>
]]></description><link>http://discuss.colyseus.io/post/1266</link><guid isPermaLink="true">http://discuss.colyseus.io/post/1266</guid><dc:creator><![CDATA[abelp]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Problem with colyseus.js and webpack on Invalid Date]]></title><description><![CDATA[<p>SOLVED!<br />
I had <strong>&quot;module&quot;: &quot;ES6&quot;</strong> in tsconfig.json. Changed to <strong>&quot;module&quot;: &quot;commonjs&quot;</strong>, and now can find the colyseus.js module.<br />
Colyseus is great but configuration files are a nightmare!</p>
]]></description><link>http://discuss.colyseus.io/post/1269</link><guid isPermaLink="true">http://discuss.colyseus.io/post/1269</guid><dc:creator><![CDATA[abelp]]></dc:creator><pubDate>Invalid Date</pubDate></item></channel></rss>