frederikhors

Results 725 comments of frederikhors

Yeah. I'm trying it right now. Gimme few minutes.

It works amazingly well! I'm only having these warnings in console: ```bash [Svelte HMR] Setting css option to false (set hot.noDisableCss to true to bypass) [HMR] Compat mode: only rewrite...

Here the reproduction: https://github.com/frederikhors/svelte-template-hot-typescript.

If I add this in `tsconfig.json` things change: ```json ... "compilerOptions": { "module": "ESNext" } ```

Now the issue is: `Property 'hot' does not exist on type 'ImportMeta'.ts(2339)`

I'm using this for now until an "official" solution. https://stackoverflow.com/a/48638402/10088259

Today I am on this issue again. How boring! Maybe I should try `npm i @types/node` and update my `tsconfig.json`.

> BTW does this warning comes from the code transformed by `svelte-hmr`? Nope. This is my source .ts code. See here: https://github.com/snowpackjs/snowpack/discussions/1433#discussioncomment-267428. Snowpack is using this to fix this error:...

I don't want to use the comments to ignore because I want to fix the problem rather than work around it. And also because I also fixed eslint for typescript...

I found a way now: copy https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/snowpack-env/index.d.ts.