Myvideo

Guest

Login

Alias Plugin + Rollup + Typescript

Uploaded By: Myvideo
6 views
0
0 votes
0

If you try adding alias to your svelte typescript project, you may run into a bug like.. [!] Error: Could not load ./src/myFly (imported by src/routes/Learn/): ENOENT: no such file or directory, open './src/myFly' TL;DW 👇👇👇👇👇 1. npm i @rollup/plugin-alias -D 2. Add this to “compilerOptions“: { “baseUrl“: “.“, “paths“: { “src/*“: [“src/*“] } } 3. Add this AFTER the typescript plugin in alias({ resolve: ['.js', '.ts', '.svelte'], e

Share with your friends

Link:

Embed:

Video Size:

Custom size:

x

Add to Playlist:

Favorites
My Playlist
Watch Later