Subwaytime / vite-aliases

Alias auto generation for Vite
https://www.npmjs.com/package/vite-aliases
MIT License
213 stars 13 forks source link

Tell users that `baseUrl` is required #27

Closed FunctionDJ closed 3 years ago

FunctionDJ commented 3 years ago

When compilerOptions.baseUrl is not set, aliases using compilerOptions.path won't work, and there seems to be no way to debug this and figure it out without just reading about aliases in TypeScript and running into this.

It's unfortunate that TypeScript doesn't let the user know that aliases are ignored when baseUrl is not set.

I'm requesting that this information is added to the README of this project :)

FunctionDJ commented 3 years ago

Nevermind... this is not the case. My issue stems from the missing /* suffix: #28