svelte-hmr icon indicating copy to clipboard operation
svelte-hmr copied to clipboard

native support breaks with empty components

Open halfnelson opened this issue 4 years ago • 3 comments

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

halfnelson avatar Mar 16 '20 01:03 halfnelson

Do you know if that's still the case in Svelte Native?

rixo avatar Mar 03 '22 21:03 rixo

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 avatar May 02 '23 10:05 pasevin

@pasevin Can you confirm that you have compiler's dev option to true when this happens?

rixo avatar May 12 '23 15:05 rixo