<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: kuuudo</title>
    <description>The latest articles on DEV Community by kuuudo (@kuuudo).</description>
    <link>https://dev.to/kuuudo</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3048720%2F0a0b60fd-bb3d-4c04-8594-fac190cbeb3c.png</url>
      <title>DEV Community: kuuudo</title>
      <link>https://dev.to/kuuudo</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/kuuudo"/>
    <language>en</language>
    <item>
      <title>"Vite + Three.js + TypeScript project works with npm run dev, but breaks on GitHub Pages. Need help deploying."</title>
      <dc:creator>kuuudo</dc:creator>
      <pubDate>Mon, 14 Apr 2025 03:17:49 +0000</pubDate>
      <link>https://dev.to/kuuudo/vite-threejs-typescript-project-works-with-npm-run-dev-but-breaks-on-github-pages-need-help-2pg4</link>
      <guid>https://dev.to/kuuudo/vite-threejs-typescript-project-works-with-npm-run-dev-but-breaks-on-github-pages-need-help-2pg4</guid>
      <description>&lt;p&gt;Hey everyone,&lt;br&gt;
I’m currently working on a project using Three.js, Vite, and TypeScript. I want to make it a published website, and I’m using GitHub Pages as the hosting platform. Everything works perfectly when I run npm run dev, but when I try to run npm run preview, or when I deploy it to GitHub Pages, it just shows a blank (white) canvas.&lt;br&gt;
When I open the browser console (F12), I get a 404 error saying it can’t find my main.ts file.&lt;br&gt;
Here’s what I’ve tried so far:&lt;br&gt;
I added this line in my package.json: "homepage": "&lt;a href="https://kuuudo.github.io/roberterrante/" rel="noopener noreferrer"&gt;https://kuuudo.github.io/roberterrante/&lt;/a&gt;"&lt;br&gt;
I also updated vite.config.js to include: base: '/roberterrante/',&lt;br&gt;
But none of this seems to fix the issue.&lt;br&gt;
I also have a mobile.ts file that should load instead of main.ts when a mobile device is detected, but I haven’t gotten that part to work in the deployed version either.&lt;br&gt;
Also, just a heads up — this is my first website project, and I probably put too many unnecessary files in the src folder 😅. There are files like car.ts, box.ts, eve.ts, followCam.ts, game.ts, keyboard.ts, main.js, othermain.ts, and a few others I’m honestly too afraid to delete right now, in case they break something.&lt;br&gt;
Any ideas what I might be missing? I'd really appreciate your help!&lt;/p&gt;

&lt;p&gt;🔗 Live website:&lt;br&gt;
 👉 &lt;a href="https://kuuudo.github.io/roberterrante/" rel="noopener noreferrer"&gt;https://kuuudo.github.io/roberterrante/&lt;/a&gt;&lt;br&gt;
💻 GitHub repository:&lt;br&gt;
 👉 &lt;a href="https://github.com/kuuudo/roberterrante" rel="noopener noreferrer"&gt;https://github.com/kuuudo/roberterrante&lt;/a&gt;&lt;br&gt;
Any ideas what I might be missing? I'd really appreciate your help!&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fratfww942fm1yz8vooq0.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fratfww942fm1yz8vooq0.jpg" alt="Image description" width="554" height="287"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjaa81odlxj8xsmis41n5.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjaa81odlxj8xsmis41n5.jpg" alt="Image description" width="554" height="203"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>githubpages</category>
    </item>
    <item>
      <title>Vite + Three.js site works in dev, but 404s on GitHub Pages—can’t find main.ts. Tried setting base + homepage. Any ideas? 🙏</title>
      <dc:creator>kuuudo</dc:creator>
      <pubDate>Mon, 14 Apr 2025 03:15:08 +0000</pubDate>
      <link>https://dev.to/kuuudo/vite-threejs-site-works-in-dev-but-404s-on-github-pages-cant-find-maints-tried-setting-base-2dm7</link>
      <guid>https://dev.to/kuuudo/vite-threejs-site-works-in-dev-but-404s-on-github-pages-cant-find-maints-tried-setting-base-2dm7</guid>
      <description>&lt;p&gt;Hey everyone,&lt;br&gt;
I’m currently working on a project using Three.js, Vite, and TypeScript. I want to make it a published website, and I’m using GitHub Pages as the hosting platform. Everything works perfectly when I run npm run dev, but when I try to run npm run preview, or when I deploy it to GitHub Pages, it just shows a blank (white) canvas.&lt;br&gt;
When I open the browser console (F12), I get a 404 error saying it can’t find my main.ts file.&lt;br&gt;
Here’s what I’ve tried so far:&lt;br&gt;
I added this line in my package.json: "homepage": "&lt;a href="https://kuuudo.github.io/roberterrante/" rel="noopener noreferrer"&gt;https://kuuudo.github.io/roberterrante/&lt;/a&gt;"&lt;br&gt;
I also updated vite.config.js to include: base: '/roberterrante/',&lt;br&gt;
But none of this seems to fix the issue.&lt;br&gt;
I also have a mobile.ts file that should load instead of main.ts when a mobile device is detected, but I haven’t gotten that part to work in the deployed version either.&lt;br&gt;
Also, just a heads up — this is my first website project, and I probably put too many unnecessary files in the src folder 😅. There are files like car.ts, box.ts, eve.ts, followCam.ts, game.ts, keyboard.ts, main.js, othermain.ts, and a few others I’m honestly too afraid to delete right now, in case they break something.&lt;br&gt;
Any ideas what I might be missing? I'd really appreciate your help!&lt;/p&gt;

&lt;p&gt;🔗 Live website:&lt;br&gt;
 👉 &lt;a href="https://kuuudo.github.io/roberterrante/" rel="noopener noreferrer"&gt;https://kuuudo.github.io/roberterrante/&lt;/a&gt;&lt;br&gt;
💻 GitHub repository:&lt;br&gt;
 👉 &lt;a href="https://github.com/kuuudo/roberterrante" rel="noopener noreferrer"&gt;https://github.com/kuuudo/roberterrante&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8zdxczyf2w5gb7mq8ry2.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8zdxczyf2w5gb7mq8ry2.jpg" alt="Image description" width="554" height="287"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkm5cto7q7fc8wfc59bje.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkm5cto7q7fc8wfc59bje.jpg" alt="Image description" width="554" height="203"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>threejs</category>
    </item>
  </channel>
</rss>
