question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

@prefresh/vite not working for non-root component

See original GitHub issue

In 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:closed
  • Created 3 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
JoviDeCroockcommented, Jun 12, 2020

All right, I’ll publish 0.9.0 tonight 👍

0reactions
JoviDeCroockcommented, Jun 12, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found