-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
455 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Troubleshooting | ||
|
||
This section lists a few common gotchas, and bugs introduced in the past. | ||
Please skim through before [opening an issue](https://github.com/fi3ework/vite-plugin-checker/issues/new/choose). | ||
|
||
## HMR Issues | ||
|
||
### Hot Module Refresh does not work when integrating with backend | ||
|
||
When integrating with a [traditional backend](https://vitejs.dev/guide/backend-integration.html#backend-integration), in development mode, you need to inject vite-plugin-checker's runtime manually. | ||
|
||
```html | ||
<!-- if development --> | ||
<script type="module" src="http://localhost:5173/@vite/client"></script> | ||
<script type="module" src="http://localhost:5173/main.js"></script> | ||
<!-- add below for vite-plugin-checker --> | ||
<script type="module" src="http://localhost:5173/@vite-plugin-checker-runtime-entry"></script> | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.