solid-refresh icon indicating copy to clipboard operation
solid-refresh copied to clipboard

Hot reload is not working!

Open sahilrajput03 opened this issue 2 years ago • 3 comments

Describe the bug

When i change some code in App.jsx, I need to manually refresh the browser page. I don't know if this is expected or not?

But I would really like if the browser page refresh automatically if i chnage some code in the source code.

Your Example Website or App

https://github.com/sahilrajput03/learning-solidjs/tree/main/solidjs-myapp

Steps to Reproduce the Bug or Issue

I used the latest version of solidjs to create the project.

> npx degit solidjs/templates/js my-app
> cd my-app
> npm i # or yarn or pnpm
> npm run dev # or yarn or pnpm

from https://www.solidjs.com/guides/getting-started

Expected behavior

The browser should reload automatically as it stated by solidjs in the initila component like

Edit src/App.jsx and save to reload.

Screenshots or Videos

https://imgur.com/a/VXphoE6

Platform

  • OS: Arch Linux: 5.16.9-arch1-1
  • Browser: Chrome and Firefox

Additional context

No response

sahilrajput03 avatar Feb 20 '22 19:02 sahilrajput03

See solidjs/templates#30

lxsmnsyc avatar Feb 21 '22 01:02 lxsmnsyc

@ryansolid please see the linked issue that I mentioned. Apparently the bug only exists in the JS template

lxsmnsyc avatar Mar 01 '22 11:03 lxsmnsyc

@ryansolid please see the linked issue that I mentioned. Apparently the bug only exists in the JS template

Yes, I should have mentioned that I continued to use ts temlate and its working qute superb for me!

sahilrajput03 avatar Mar 01 '22 15:03 sahilrajput03