You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I enable typescript to Svelte Project (not sveltekit)
I get this error
(!) Plugin typescript: @rollup/plugin-typescript TS2307: Cannot find module './App.svelte' or its corresponding type declarations. src\main.ts: (1:17) 1 import App from './App.svelte';
I've not modified my Main.ts file
import App from './App.svelte'; const app = new App({ target: document.body, props: { name: 'world' } }); export default app;
This doesn't prevent it from running, but I'd, ideally like to have my console without errors.
I do have my typescript definition file in my src folder. At first, I thought maybe I should include a .nvmrc file with the recent version, but didn't work. used npm update. That didn't work. So, I imagine this is outside my understanding.