solidjs / solid-start

SolidStart, the Solid app framework
https://start.solidjs.com
MIT License
4.94k stars 371 forks source link

Issue with File Updates on Dev Server #1562

Open vlamirand opened 5 days ago

vlamirand commented 5 days ago

Describe the bug

When using the solid template with the with-tailwindcss option, as provided by the command bun create solid, there are issues with automatic file updates on the dev server. The problem manifests as follows:

Issues Encountered:

Example code

https://github.com/vlamirand/Issue-dev

Steps to Reproduce the Bug or Issue

  1. Run bun create solid and select the with-tailwindcss option.
  2. Run bun install and bun dev.
  3. Modify the page file, e.g., src/routes/about.jsx.
  4. Refresh the page in the browser and check if the changes are reflected.
  5. Create a new API file, e.g., src/routes/api/products.js with the following content:
    export async function GET({ params }) {
    const products = { id: 1, name: 'rrffff222oo11232323232323' };
    return products;
    }
  6. Modify the name value in products.js.
  7. Make a request to the API and check if the value is updated.

Expected behavior

File changes should automatically reflect on the page without the need to restart the dev server.

Platform

!

On Windows, everything works fine with the same steps: bun install and bun dev.

doeixd commented 4 days ago

Hello, I cloned your repo and followed your instructions and was unable to reproduce on Windows using bun.

I tried again with bun on Ubuntu WSL, and I couldn't get it to run at all.

I suspect this is an issue with your environment or bun.