Hi Markus,
It did not work for me. I keep getting:
• client
/home/kanmii/projects/sapper-with-ts-sample/src/routes/index.svelte
'title' is not defined
38:
39: <svelte:head>
40: <title>{title}</title>
^
41: </svelte:head>
42:
• server
/home/kanmii/projects/sapper-with-ts-sample/src/routes/index.svelte
'title' is not defined
38:
39: <svelte:head>
40: <title>{title}</title>
^
41: </svelte:head>
Do you have a github repo I can clone demonstrating how to use typescript with svelte?
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
What you can do if you want to write your TypeScript code to an extra file:
Add this to your
index.svelte
:And in your
src/hello.ts
:Hi Markus,
It did not work for me. I keep getting:
Do you have a github repo I can clone demonstrating how to use typescript with svelte?