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

native support breaks with empty components #9

Open
halfnelson opened this issue Mar 16, 2020 · 3 comments
Open

native support breaks with empty components #9

halfnelson opened this issue Mar 16, 2020 · 3 comments

Comments

@halfnelson
Copy link
Contributor

System.err: TypeError: Cannot create property 'm' on boolean 'false'

for a component

<script>
  export let prop
</script>

see halfnelson/svelte-native#123

@rixo
Copy link
Collaborator

rixo commented Mar 3, 2022

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

@pasevin
Copy link

pasevin commented May 2, 2023

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?

@rixo
Copy link
Collaborator

rixo commented May 12, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants