@prefresh/vite not working for non-root component
See original GitHub issueIn the default vite template for preact, created with
npx create-vite-app preact-hmr --template preact
, editing the default app.jsx works as expected and is reflected on the page instantly. Any new component created and used within app.jsx
doesn’t cause anything to change in the page when that new component is changed itself.
Posted in Vite. But thought maybe it might be directly related to this instead. https://github.com/vitejs/vite/issues/388#issue-637305182
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Hot Reload shows in terminal but do not updates browser #7839
I have a Vue.js 3 + Vite + Tailwind CSS 3 project that uses a third ... It seems like vite has some...
Read more >Features | Vite
Use the Type-Only Imports and Export syntax to avoid potential problems like type-only imports being incorrectly bundled, for example:.
Read more >Absolute path not working in Vite project React TS
There are two problems here: Tell typescript how to resolve import path; Tell vite how to build import path. You only tell typescript...
Read more >@vitejs/plugin-react - npm
The all-in-one Vite plugin for React projects. ... However, if you encounter any issues, you may opt out using the jsxRuntime option.
Read more >How to Install Vite.js on your Computer? - Positiwise
Vite Javascript is a no bundler modern technology development environment, ... in which you have to modify the App.vue root component to enable...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
All right, I’ll publish 0.9.0 tonight 👍
0.9.1 has been published and should fix the default exports and normal non-root one! Thanks for reporting this issue, also PR’ed the upgrade to the template.