svelte-pipeline
svelte-pipeline copied to clipboard
"Unterminated template" or "Cannot read properties of null"
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?