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

"Unterminated template" or "Cannot read properties of null" #5

Open
j2l opened this issue Apr 3, 2023 · 0 comments
Open

"Unterminated template" or "Cannot read properties of null" #5

j2l opened this issue Apr 3, 2023 · 0 comments

Comments

@j2l
Copy link

j2l commented Apr 3, 2023

I tried install your package on a fresh new svelte+vite install and pasted your code into App.svelte but first, it seems to refuse the COMPONENT script:

const COMPONENT = `<script>
  export let count = 0;
  function on_click(event) {
      count += 1;
  }
</script>

This leads to an error in the browser and the server: Unterminated template
Changing /script to /script make it work but then I get:

App.svelte:18 Uncaught TypeError: Cannot read properties of null (reading 'type')

where line 18 is if (result.type === PIPELINE_RESULT_TYPES.error) {

I guess I didn't get something. Could you please let me know how to make it work?

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

No branches or pull requests

1 participant