title: Problem Importing a JS Function in my Typescript Project
body: <p>I am making a project using ThreeJS and trying to import a js function that adds a ASCII Effect to the renderer but no matter how I do it I seem to get errors. I've tried several syntaxes and changing the TS config but no luck.</p>
  <p>Edit: Just realised I should clarify, I downloaded the AsciiEffect function as a js file from the github repo directly so I am trying to import a single function from the file I downloaded &quot;AsciiEffect.js&quot; to my main TS file &quot;main.ts&quot;. I am not importing from the ThreeJS dependency, as it is not a part of the package itself apparently.</p>
  <p>TS Config File</p>
  <pre><code>{
    &quot;compilerOptions&quot;: {
      &quot;target&quot;: &quot;ESNext&quot;,
      &quot;useDefineForClassFields&quot;: true,
      &quot;module&quot;: &quot;commonJS&quot;,
      &quot;lib&quot;: [&quot;ESNext&quot;, &quot;DOM&quot;],
      &quot;moduleResolution&quot;: &quot;Node&quot;,
      &quot;strict&quot;: true,
      &quot;sourceMap&quot;: true,
      &quot;isolatedModules&quot;: true,
      &quot;esModuleInterop&quot;: true,
      &quot;noEmit&quot;: true,
      &quot;noUnusedLocals&quot;: true,
      &quot;noUnusedParameters&quot;: true,
      &quot;noImplicitReturns&quot;: true,
      &quot;skipLibCheck&quot;: true,
      &quot;allowJs&quot;: true
    },
    &quot;include&quot;: [&quot;src&quot;]
  }
  </code></pre>
  <p>currently I am trying to import like this</p>
  <pre><code>import './style.css'
  import * as THREE from 'three';
  import {AsciiEffect} from './effects/AsciiEffect.js'
  </code></pre>
  <p>and exporting from AsciiEffect.js like this</p>
  <pre><code>export {AsciiEffect}
  </code></pre>
  <p>which gives me this error in the browser
  Uncaught SyntaxError: Export 'AsciiEffect' is not defined in module</p>
  <p>I have tried using other syntaxes but had no luck, this is my first project attempting to use typescript and I actually expected the effect to be inside the ThreeJS dependency. I tried redoing what I have so far in JS but get the same error. The project was created using Vite if that helps at all. Its just a default TS project with no framework.</p>