title: Cannot find module './App.svelte' or its corresponding type declarations
body: <p>I have a setup that integrates electron with svelte along with typescript support.</p>
  <p>when I run the <code>rollup</code> script to compile svelte app, i am getting cannot find module <code>./App.svelte</code> error as shown below.</p>
  <pre><code>Plugin typescript: @rollup/plugin-typescript TS2307: Cannot find module './App.svelte' or its corresponding type declarations.
  </code></pre>
  <p>Here's my <code>package.json</code> configuration :</p>
  <pre><code>{
    &quot;name&quot;: &quot;tapwire-electron-first&quot;,
    &quot;productName&quot;: &quot;tapwire-electron-first&quot;,
    &quot;version&quot;: &quot;1.0.0&quot;,
    &quot;description&quot;: &quot;My Electron application description&quot;,
    &quot;main&quot;: &quot;dist/index.js&quot;,
    &quot;scripts&quot;: {
      &quot;electron-start&quot;: &quot;tsc &amp;&amp; electron-forge start&quot;,
      &quot;electron-package&quot;: &quot;electron-forge package&quot;,
      &quot;electron-make&quot;: &quot;electron-forge make&quot;,
      &quot;electron-publish&quot;: &quot;electron-forge publish&quot;,
      &quot;electron-lint&quot;: &quot;eslint --ext .ts .&quot;,
      &quot;svelte-build&quot;: &quot;rollup -c&quot;,
      &quot;svelte-dev&quot;: &quot;rollup -c -w&quot;,
      &quot;svelte-start&quot;: &quot;sirv public&quot;,
      &quot;svelte-validate&quot;: &quot;svelte-check&quot;,
      &quot;start&quot;: &quot;run-p svelte-dev electron-start&quot;
    },
    &quot;keywords&quot;: [],
    &quot;author&quot;: {
      &quot;name&quot;: &quot;nateshmbhat&quot;,
    },
    &quot;license&quot;: &quot;MIT&quot;,
    &quot;config&quot;: {
      &quot;forge&quot;: {
        &quot;packagerConfig&quot;: {},
        &quot;makers&quot;: [
          {
            &quot;name&quot;: &quot;@electron-forge/maker-squirrel&quot;,
            &quot;config&quot;: {
              &quot;name&quot;: &quot;tapwire_electron_first&quot;
            }
          },
          {
            &quot;name&quot;: &quot;@electron-forge/maker-zip&quot;,
            &quot;platforms&quot;: [
              &quot;darwin&quot;
            ]
          },
          {
            &quot;name&quot;: &quot;@electron-forge/maker-deb&quot;,
            &quot;config&quot;: {}
          },
          {
            &quot;name&quot;: &quot;@electron-forge/maker-rpm&quot;,
            &quot;config&quot;: {}
          }
        ]
      }
    },
    &quot;devDependencies&quot;: {
      &quot;@electron-forge/cli&quot;: &quot;^6.0.0-beta.53&quot;,
      &quot;@electron-forge/maker-deb&quot;: &quot;^6.0.0-beta.53&quot;,
      &quot;@electron-forge/maker-rpm&quot;: &quot;^6.0.0-beta.53&quot;,
      &quot;@electron-forge/maker-squirrel&quot;: &quot;^6.0.0-beta.53&quot;,
      &quot;@electron-forge/maker-zip&quot;: &quot;^6.0.0-beta.53&quot;,
      &quot;@rollup/plugin-commonjs&quot;: &quot;^15.1.0&quot;,
      &quot;@rollup/plugin-node-resolve&quot;: &quot;^9.0.0&quot;,
      &quot;@rollup/plugin-typescript&quot;: &quot;^6.0.0&quot;,
      &quot;@types/node&quot;: &quot;^14.11.2&quot;,
      &quot;@typescript-eslint/eslint-plugin&quot;: &quot;^2.34.0&quot;,
      &quot;@typescript-eslint/parser&quot;: &quot;^2.34.0&quot;,
      &quot;cross-env&quot;: &quot;^7.0.2&quot;,
      &quot;electron&quot;: &quot;10.1.3&quot;,
      &quot;eslint&quot;: &quot;^7.10.0&quot;,
      &quot;eslint-plugin-import&quot;: &quot;^2.22.1&quot;,
      &quot;npm-run-all&quot;: &quot;^4.1.5&quot;,
      &quot;rollup&quot;: &quot;^2.28.2&quot;,
      &quot;rollup-plugin-livereload&quot;: &quot;^2.0.0&quot;,
      &quot;rollup-plugin-svelte&quot;: &quot;^6.0.1&quot;,
      &quot;rollup-plugin-terser&quot;: &quot;^7.0.2&quot;,
      &quot;svelte&quot;: &quot;^3.29.0&quot;,
      &quot;svelte-check&quot;: &quot;^1.0.55&quot;,
      &quot;svelte-preprocess&quot;: &quot;^4.3.2&quot;,
      &quot;typescript&quot;: &quot;^4.0.3&quot;
    },
    &quot;dependencies&quot;: {
      &quot;concurrently&quot;: &quot;^5.3.0&quot;,
      &quot;electron-reload&quot;: &quot;^1.5.0&quot;,
      &quot;electron-squirrel-startup&quot;: &quot;^1.0.0&quot;,
      &quot;sirv-cli&quot;: &quot;^1.0.6&quot;
    }
  }
  </code></pre>