@snowpack/app-template-svelte-typescript: "Property 'hot' does not exist" error #1433
Replies: 4 comments 4 replies
-
Hi @plibither8 that does look super frustrating. I'm going to be writing some docs/guides on TS and Svelte so hopefully I can debug this error in the process. If you have any code available on GitHub that might be helpful. |
Beta Was this translation helpful? Give feedback.
-
Installing |
Beta Was this translation helpful? Give feedback.
-
To fix the error of ImportMeta, add the following interface in "types/static.d.ts":
|
Beta Was this translation helpful? Give feedback.
-
note: I came around as I encountered the same issue: |
Beta Was this translation helpful? Give feedback.
-
Hi. I created a new Snowpack-Svelte-Typescript app using CSA, installed the modules, and was initially greeted with this error:
src/index.ts(1,17): error TS2307: Cannot find module './App.svelte' or its corresponding type declarations.
I fixed it by troubleshooting on StackOverflow, and finally adding
"extends": "@tsconfig/svelte/tsconfig.json",
to thetsconfig.json
file. But now, the following error comes up:src/index.ts(11,17): error TS2339: Property 'hot' does not exist on type 'ImportMeta'.
I have no clue how to go about solving this - I'm pretty new to TypeScript and was going to explore TS in this project. Otherwise, the app itself seems to build fine.
How should I proceed? Thanks :)
Beta Was this translation helpful? Give feedback.
All reactions