I've been trying to fix this for hours, looking through google and closed issues, but looks like I'm unable to can. :sob:
My mind is melting.
It was working with jsconfig.js, but not after I moved to ts.
Here's repro branch. https://github.com/non25/svelte-template-webpack/tree/svelte-check-ts-aliases
To reproduce on your machine:
npx degit non25/svelte-template-webpack#svelte-check-ts-aliasessvelte-check: npm run validate or yarn validate
Error: Cannot find module '~/helper' or its corresponding type declarations. (ts)
<script lang="ts">
import { helper } from '~/helper';
paths and baseUrl should be in the compilerOptions
Most helpful comment
pathsandbaseUrlshould be in thecompilerOptions