Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HMR broken when editing styles in markdown pages #3129

Closed
brc-dd opened this issue Oct 23, 2023 · 0 comments
Closed

HMR broken when editing styles in markdown pages #3129

brc-dd opened this issue Oct 23, 2023 · 0 comments
Labels
bug Something isn't working upstream Related to the dependencies

Comments

@brc-dd
Copy link
Member

brc-dd commented Oct 23, 2023

try changing styles in docs/index.md

10:21:11 AM [vitepress] Internal server error: At least one <template> or <script> is required in a single file component.
      at Object.parse$2 [as parse] (/Users/divyansh/vitepress/node_modules/.pnpm/@[email protected]/node_modules/@vue/compiler-sfc/dist/compiler-sfc.cjs.js:1905:7)
      at createDescriptor (file:///Users/divyansh/vitepress/dist/node/serve-ZHDKzFm5.js:74:43)
      at getDescriptor (file:///Users/divyansh/vitepress/dist/node/serve-ZHDKzFm5.js:100:36)
      at Context.load (file:///Users/divyansh/vitepress/dist/node/serve-ZHDKzFm5.js:2783:28)
      at Object.load (file:///Users/divyansh/vitepress/node_modules/.pnpm/[email protected]_@[email protected]/node_modules/vite/dist/node/chunks/dep-bb8a8339.js:44323:64)
      at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
      at async loadAndTransform (file:///Users/divyansh/vitepress/node_modules/.pnpm/[email protected]_@[email protected]/node_modules/vite/dist/node/chunks/dep-bb8a8339.js:54954:24)
      at async viteTransformMiddleware (file:///Users/divyansh/vitepress/node_modules/.pnpm/[email protected]_@[email protected]/node_modules/vite/dist/node/chunks/dep-bb8a8339.js:64430:32)
@brc-dd brc-dd added the bug Something isn't working label Oct 23, 2023
@brc-dd brc-dd changed the title HMR broken on empty pages HMR broken when editing styles in markdown pages Oct 24, 2023
@brc-dd brc-dd closed this as completed Oct 24, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 1, 2023
@vuejs vuejs unlocked this conversation Nov 6, 2023
@brc-dd brc-dd reopened this Nov 6, 2023
@brc-dd brc-dd added the upstream Related to the dependencies label Nov 6, 2023
renovate bot added a commit to fwouts/previewjs that referenced this issue Nov 8, 2023
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[@vitejs/plugin-vue](https://togithub.com/vitejs/vite-plugin-vue/tree/main/packages/plugin-vue#readme)
([source](https://togithub.com/vitejs/vite-plugin-vue)) | [`^4.4.0` ->
`^4.4.1`](https://renovatebot.com/diffs/npm/@vitejs%2fplugin-vue/4.4.0/4.4.1)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@vitejs%2fplugin-vue/4.4.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@vitejs%2fplugin-vue/4.4.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@vitejs%2fplugin-vue/4.4.0/4.4.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@vitejs%2fplugin-vue/4.4.0/4.4.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>vitejs/vite-plugin-vue (@&#8203;vitejs/plugin-vue)</summary>

###
[`v4.4.1`](https://togithub.com/vitejs/vite-plugin-vue/blob/HEAD/packages/plugin-vue/CHANGELOG.md#small441-2023-11-08-small)

- fix: fix style block hmr for vitepress md files
([a26a854](https://togithub.com/vitejs/vite-plugin-vue/commit/a26a854)),
closes
[vuejs/vitepress#3129](https://togithub.com/vuejs/vitepress/issues/3129)
- chore: make tests pass with rollup4
([#&#8203;271](https://togithub.com/vitejs/vite-plugin-vue/issues/271))
([298d419](https://togithub.com/vitejs/vite-plugin-vue/commit/298d419)),
closes
[#&#8203;271](https://togithub.com/vitejs/vite-plugin-vue/issues/271)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/fwouts/previewjs).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40Ni4wIiwidXBkYXRlZEluVmVyIjoiMzcuNDYuMCIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
renovate bot added a commit to slipmatio/ui that referenced this issue Nov 13, 2023
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[@types/node](https://togithub.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node)
([source](https://togithub.com/DefinitelyTyped/DefinitelyTyped)) |
[`20.8.10` ->
`20.9.0`](https://renovatebot.com/diffs/npm/@types%2fnode/20.8.10/20.9.0)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@types%2fnode/20.9.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@types%2fnode/20.9.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@types%2fnode/20.8.10/20.9.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@types%2fnode/20.8.10/20.9.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[@vitejs/plugin-vue](https://togithub.com/vitejs/vite-plugin-vue/tree/main/packages/plugin-vue#readme)
([source](https://togithub.com/vitejs/vite-plugin-vue)) | [`4.4.0` ->
`4.4.1`](https://renovatebot.com/diffs/npm/@vitejs%2fplugin-vue/4.4.0/4.4.1)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@vitejs%2fplugin-vue/4.4.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@vitejs%2fplugin-vue/4.4.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@vitejs%2fplugin-vue/4.4.0/4.4.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@vitejs%2fplugin-vue/4.4.0/4.4.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
| [vue](https://togithub.com/vuejs/core/tree/main/packages/vue#readme)
([source](https://togithub.com/vuejs/core)) | [`3.3.7` ->
`3.3.8`](https://renovatebot.com/diffs/npm/vue/3.3.7/3.3.8) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/vue/3.3.8?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/vue/3.3.8?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/vue/3.3.7/3.3.8?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/vue/3.3.7/3.3.8?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>vitejs/vite-plugin-vue (@&#8203;vitejs/plugin-vue)</summary>

###
[`v4.4.1`](https://togithub.com/vitejs/vite-plugin-vue/blob/HEAD/packages/plugin-vue/CHANGELOG.md#small441-2023-11-08-small)

- fix: fix style block hmr for vitepress md files
([a26a854](https://togithub.com/vitejs/vite-plugin-vue/commit/a26a854)),
closes
[vuejs/vitepress#3129](https://togithub.com/vuejs/vitepress/issues/3129)
- chore: make tests pass with rollup4
([#&#8203;271](https://togithub.com/vitejs/vite-plugin-vue/issues/271))
([298d419](https://togithub.com/vitejs/vite-plugin-vue/commit/298d419)),
closes
[#&#8203;271](https://togithub.com/vitejs/vite-plugin-vue/issues/271)

</details>

<details>
<summary>vuejs/core (vue)</summary>

###
[`v3.3.8`](https://togithub.com/vuejs/core/blob/HEAD/CHANGELOG.md#338-2023-11-06)

[Compare
Source](https://togithub.com/vuejs/core/compare/v3.3.7...v3.3.8)

##### Bug Fixes

- **compile-sfc:** support `Error` type in `defineProps`
([#&#8203;5955](https://togithub.com/vuejs/core/issues/5955))
([a989345](https://togithub.com/vuejs/core/commit/a9893458ec519aae442e1b99e64e6d74685cd22c))
- **compiler-core:** known global should be shadowed by local variables
in expression rewrite
([#&#8203;9492](https://togithub.com/vuejs/core/issues/9492))
([a75d1c5](https://togithub.com/vuejs/core/commit/a75d1c5c6242e91a73cc5ba01e6da620dea0b3d9)),
closes [#&#8203;9482](https://togithub.com/vuejs/core/issues/9482)
- **compiler-sfc:** fix dynamic directive arguments usage check for
slots ([#&#8203;9495](https://togithub.com/vuejs/core/issues/9495))
([b39fa1f](https://togithub.com/vuejs/core/commit/b39fa1f8157647859331ce439c42ae016a49b415)),
closes [#&#8203;9493](https://togithub.com/vuejs/core/issues/9493)
- **deps:** update dependency
[@&#8203;vue/repl](https://togithub.com/vue/repl) to ^2.6.2
([#&#8203;9536](https://togithub.com/vuejs/core/issues/9536))
([5cef325](https://togithub.com/vuejs/core/commit/5cef325f41e3b38657c72fa1a38dedeee1c7a60a))
- **deps:** update dependency
[@&#8203;vue/repl](https://togithub.com/vue/repl) to ^2.6.3
([#&#8203;9540](https://togithub.com/vuejs/core/issues/9540))
([176d590](https://togithub.com/vuejs/core/commit/176d59058c9aecffe9da4d4311e98496684f06d4))
- **hydration:** fix tagName access eeror on comment/text node hydration
mismatch
([dd8a0cf](https://togithub.com/vuejs/core/commit/dd8a0cf5dcde13d2cbd899262a0e07f16e14e489)),
closes [#&#8203;9531](https://togithub.com/vuejs/core/issues/9531)
- **types:** avoid exposing lru-cache types in generated dts
([462aeb3](https://togithub.com/vuejs/core/commit/462aeb3b600765e219ded2ee9a0ed1e74df61de0)),
closes [#&#8203;9521](https://togithub.com/vuejs/core/issues/9521)
- **warn:** avoid warning on empty children with Suspense
([#&#8203;3962](https://togithub.com/vuejs/core/issues/3962))
([405f345](https://togithub.com/vuejs/core/commit/405f34587a63a5f1e3d147b9848219ea98acc22d))

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "before 4am on Monday" in timezone
Europe/Helsinki, Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

👻 **Immortal**: This PR will be recreated if closed unmerged. Get
[config help](https://togithub.com/renovatebot/renovate/discussions) if
that's undesired.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/slipmatio/ui).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40Ni4wIiwidXBkYXRlZEluVmVyIjoiMzcuNDYuMCIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
renovate bot added a commit to slipmatio/logger that referenced this issue Nov 13, 2023
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[@types/node](https://togithub.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node)
([source](https://togithub.com/DefinitelyTyped/DefinitelyTyped)) |
[`20.8.10` ->
`20.9.0`](https://renovatebot.com/diffs/npm/@types%2fnode/20.8.10/20.9.0)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@types%2fnode/20.9.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@types%2fnode/20.9.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@types%2fnode/20.8.10/20.9.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@types%2fnode/20.8.10/20.9.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[@vitejs/plugin-vue](https://togithub.com/vitejs/vite-plugin-vue/tree/main/packages/plugin-vue#readme)
([source](https://togithub.com/vitejs/vite-plugin-vue)) | [`4.4.0` ->
`4.4.1`](https://renovatebot.com/diffs/npm/@vitejs%2fplugin-vue/4.4.0/4.4.1)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@vitejs%2fplugin-vue/4.4.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@vitejs%2fplugin-vue/4.4.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@vitejs%2fplugin-vue/4.4.0/4.4.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@vitejs%2fplugin-vue/4.4.0/4.4.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
| [vue](https://togithub.com/vuejs/core/tree/main/packages/vue#readme)
([source](https://togithub.com/vuejs/core)) | [`3.3.7` ->
`3.3.8`](https://renovatebot.com/diffs/npm/vue/3.3.7/3.3.8) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/vue/3.3.8?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/vue/3.3.8?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/vue/3.3.7/3.3.8?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/vue/3.3.7/3.3.8?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>vitejs/vite-plugin-vue (@&#8203;vitejs/plugin-vue)</summary>

###
[`v4.4.1`](https://togithub.com/vitejs/vite-plugin-vue/blob/HEAD/packages/plugin-vue/CHANGELOG.md#small441-2023-11-08-small)

- fix: fix style block hmr for vitepress md files
([a26a854](https://togithub.com/vitejs/vite-plugin-vue/commit/a26a854)),
closes
[vuejs/vitepress#3129](https://togithub.com/vuejs/vitepress/issues/3129)
- chore: make tests pass with rollup4
([#&#8203;271](https://togithub.com/vitejs/vite-plugin-vue/issues/271))
([298d419](https://togithub.com/vitejs/vite-plugin-vue/commit/298d419)),
closes
[#&#8203;271](https://togithub.com/vitejs/vite-plugin-vue/issues/271)

</details>

<details>
<summary>vuejs/core (vue)</summary>

###
[`v3.3.8`](https://togithub.com/vuejs/core/blob/HEAD/CHANGELOG.md#338-2023-11-06)

[Compare
Source](https://togithub.com/vuejs/core/compare/v3.3.7...v3.3.8)

##### Bug Fixes

- **compile-sfc:** support `Error` type in `defineProps`
([#&#8203;5955](https://togithub.com/vuejs/core/issues/5955))
([a989345](https://togithub.com/vuejs/core/commit/a9893458ec519aae442e1b99e64e6d74685cd22c))
- **compiler-core:** known global should be shadowed by local variables
in expression rewrite
([#&#8203;9492](https://togithub.com/vuejs/core/issues/9492))
([a75d1c5](https://togithub.com/vuejs/core/commit/a75d1c5c6242e91a73cc5ba01e6da620dea0b3d9)),
closes [#&#8203;9482](https://togithub.com/vuejs/core/issues/9482)
- **compiler-sfc:** fix dynamic directive arguments usage check for
slots ([#&#8203;9495](https://togithub.com/vuejs/core/issues/9495))
([b39fa1f](https://togithub.com/vuejs/core/commit/b39fa1f8157647859331ce439c42ae016a49b415)),
closes [#&#8203;9493](https://togithub.com/vuejs/core/issues/9493)
- **deps:** update dependency
[@&#8203;vue/repl](https://togithub.com/vue/repl) to ^2.6.2
([#&#8203;9536](https://togithub.com/vuejs/core/issues/9536))
([5cef325](https://togithub.com/vuejs/core/commit/5cef325f41e3b38657c72fa1a38dedeee1c7a60a))
- **deps:** update dependency
[@&#8203;vue/repl](https://togithub.com/vue/repl) to ^2.6.3
([#&#8203;9540](https://togithub.com/vuejs/core/issues/9540))
([176d590](https://togithub.com/vuejs/core/commit/176d59058c9aecffe9da4d4311e98496684f06d4))
- **hydration:** fix tagName access eeror on comment/text node hydration
mismatch
([dd8a0cf](https://togithub.com/vuejs/core/commit/dd8a0cf5dcde13d2cbd899262a0e07f16e14e489)),
closes [#&#8203;9531](https://togithub.com/vuejs/core/issues/9531)
- **types:** avoid exposing lru-cache types in generated dts
([462aeb3](https://togithub.com/vuejs/core/commit/462aeb3b600765e219ded2ee9a0ed1e74df61de0)),
closes [#&#8203;9521](https://togithub.com/vuejs/core/issues/9521)
- **warn:** avoid warning on empty children with Suspense
([#&#8203;3962](https://togithub.com/vuejs/core/issues/3962))
([405f345](https://togithub.com/vuejs/core/commit/405f34587a63a5f1e3d147b9848219ea98acc22d))

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "before 4am on Monday" in timezone
Europe/Helsinki, Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

👻 **Immortal**: This PR will be recreated if closed unmerged. Get
[config help](https://togithub.com/renovatebot/renovate/discussions) if
that's undesired.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/slipmatio/logger).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40Ni4wIiwidXBkYXRlZEluVmVyIjoiMzcuNDYuMCIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working upstream Related to the dependencies
Projects
None yet
Development

No branches or pull requests

1 participant