svelte-hmr
svelte-hmr copied to clipboard
native support breaks with empty components
System.err: TypeError: Cannot create property 'm' on boolean 'false'
for a component
<script>
export let prop
</script>
see https://github.com/halfnelson/svelte-native/issues/123
Do you know if that's still the case in Svelte Native?
I'm having the same issue but with my regular svelte
project.
Using:
-
"svelte-loader": "3.1.7",
-
"svelte": "3.58.0"
Config:
...
use: {
loader: 'svelte-loader',
options: {
emitCss: true,
hotReload: !prodMode,
preprocess: sveltePreprocess({
typescript: {
tsConfigFile: './tsconfig.json',
},
}),
},
},
...
I could just use empty html tag in the component, but maybe there is a different solution?
@pasevin Can you confirm that you have compiler's dev
option to true
when this happens?