I have a simple Vue 2 single file component (SFC). I'm using the Vue 2 Composition API to define the component in the <script> portion of the SFC. I'm also using Typescript.
<template>
<!-- changing any of this does not trigger HMR -->
<div>
testing
</div>
</template>
<script lang="ts">
import { defineComponent } from '@vue/composition-api'
export default /*#__PURE__*/ defineComponent({
setup() {
console.log('ding') // changing this triggers HMR
},
})
</script>
When code in the <script> changes, webpack rebuilds, HMR is triggered in the browser, the preview reloads.
However, when changing the <template>, webpack rebuilds, the HRM triggers, but the preview does not reload.
To Reproduce
Got the following error trying to make a repro
🧶 Installing Yarn 2
yarn set version berry && yarn config set enableGlobalCache true && yarn config set nodeLinker node-modules
An error occurred while executing: `yarn set version berry && yarn config set enableGlobalCache true && yarn config set nodeLinker node-modules`
Command output was:
yarn run v1.16.0
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
warning ../package.json: No license field
error Command "set" not found.
🚨 Installing Yarn 2 failed
🚨 Failed to create repro
We’re cleaning house! Storybook has changed a lot since this issue was created and we don’t know if it’s still valid. Please open a new issue referencing this one if:
Describe the bug
I have a simple Vue 2 single file component (SFC). I'm using the Vue 2 Composition API to define the component in the
<script>
portion of the SFC. I'm also using Typescript.When code in the
<script>
changes, webpack rebuilds, HMR is triggered in the browser, the preview reloads.However, when changing the
<template>
, webpack rebuilds, the HRM triggers, but the preview does not reload.To Reproduce
Got the following error trying to make a repro
System
Additional context Add any other context about the problem here.